	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_ack
_wait_ack:                              ## @wait_ack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_wait_xfer_done
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_SMBEVNT_DN@GOTPCREL(%rip), %rax
	movq	_PSC_SMBEVNT_AN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PSC_SMBEVNT_AL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_PSC_SMBEVNT_DN,4,2             ## @PSC_SMBEVNT_DN
	.comm	_PSC_SMBEVNT_AN,4,2             ## @PSC_SMBEVNT_AN
	.comm	_PSC_SMBEVNT_AL,4,2             ## @PSC_SMBEVNT_AL
	.no_dead_strip	_wait_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_ack
_wait_ack:                              ; @wait_ack
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_wait_xfer_done
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w19, [x8]
	bl	_au_sync
Lloh0:
	adrp	x8, _PSC_SMBEVNT_DN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_SMBEVNT_DN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PSC_SMBEVNT_AN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSC_SMBEVNT_AN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PSC_SMBEVNT_AL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSC_SMBEVNT_AL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_PSC_SMBEVNT_DN,4,2             ; @PSC_SMBEVNT_DN
	.comm	_PSC_SMBEVNT_AN,4,2             ; @PSC_SMBEVNT_AN
	.comm	_PSC_SMBEVNT_AL,4,2             ; @PSC_SMBEVNT_AL
	.no_dead_strip	_wait_ack
.subsections_via_symbols
