	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_event_condition
_test_event_condition:                  ## @test_event_condition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	addq	$8, %rdx
	xorl	%eax, %eax
	movq	%rsi, %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdx
	decq	%rcx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -8(%rdx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edi, %edi
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	cmpq	%rsi, %rax
	jne	LBB0_10
LBB0_11:
	movq	_KFD_IOC_WAIT_RESULT_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_KFD_IOC_WAIT_RESULT_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_KFD_IOC_WAIT_RESULT_FAIL@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_IOC_WAIT_RESULT_FAIL,8,3   ## @KFD_IOC_WAIT_RESULT_FAIL
	.comm	_KFD_IOC_WAIT_RESULT_COMPLETE,8,3 ## @KFD_IOC_WAIT_RESULT_COMPLETE
	.comm	_KFD_IOC_WAIT_RESULT_TIMEOUT,8,3 ## @KFD_IOC_WAIT_RESULT_TIMEOUT
	.no_dead_strip	_test_event_condition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_event_condition
_test_event_condition:                  ; @test_event_condition
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	cbz	x1, LBB0_7
; %bb.1:
	add	x9, x2, #8
	mov	x10, x1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	x10, x10, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cbz	w11, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x9, #-8]
	cbz	x11, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x9, _KFD_IOC_WAIT_RESULT_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KFD_IOC_WAIT_RESULT_COMPLETE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _KFD_IOC_WAIT_RESULT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _KFD_IOC_WAIT_RESULT_TIMEOUT@GOTPAGEOFF]
	cmp	x8, x1
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
	ret
LBB0_8:
Lloh4:
	adrp	x8, _KFD_IOC_WAIT_RESULT_FAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KFD_IOC_WAIT_RESULT_FAIL@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	ret
LBB0_9:
Lloh7:
	adrp	x8, _KFD_IOC_WAIT_RESULT_COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KFD_IOC_WAIT_RESULT_COMPLETE@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_IOC_WAIT_RESULT_FAIL,8,3   ; @KFD_IOC_WAIT_RESULT_FAIL
	.comm	_KFD_IOC_WAIT_RESULT_COMPLETE,8,3 ; @KFD_IOC_WAIT_RESULT_COMPLETE
	.comm	_KFD_IOC_WAIT_RESULT_TIMEOUT,8,3 ; @KFD_IOC_WAIT_RESULT_TIMEOUT
	.no_dead_strip	_test_event_condition
.subsections_via_symbols
