	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_trap_handler
_set_trap_handler:                      ## @set_trap_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%rsi), %rax
	movq	_KFD_CWSR_TMA_OFFSET@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%rsi,%rax)
	addq	%rax, %rsi
	addq	$8, %rsi
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, 8(%rsi)
LBB0_3:
	movq	%rcx, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_CWSR_TMA_OFFSET,8,3        ## @KFD_CWSR_TMA_OFFSET
	.no_dead_strip	_set_trap_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_trap_handler
_set_trap_handler:                      ; @set_trap_handler
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _KFD_CWSR_TMA_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KFD_CWSR_TMA_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	str	x2, [x1], #8
	b	LBB0_3
LBB0_2:
	str	x2, [x1, #8]
LBB0_3:
	str	x3, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_CWSR_TMA_OFFSET,8,3        ; @KFD_CWSR_TMA_OFFSET
	.no_dead_strip	_set_trap_handler
.subsections_via_symbols
