	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_proxy_wait
_efx_mcdi_proxy_wait:                   ## @efx_mcdi_proxy_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_efx_mcdi
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movl	$1, %esi
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %eax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	addl	(%rcx), %eax
	sete	%sil
LBB0_2:
	movq	_MCDI_RPC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:
	movq	(%rbx), %r8
	cmpq	%r14, %r8
	jne	LBB0_6
## %bb.7:
	movl	8(%rbx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_netif_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_netif_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_MCDI_RPC_TIMEOUT,4,2           ## @MCDI_RPC_TIMEOUT
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCDI proxy timeout %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"MCDI proxy unexpected handle %d (expected %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_efx_mcdi_proxy_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_proxy_wait
_efx_mcdi_proxy_wait:                   ; @efx_mcdi_proxy_wait
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_efx_mcdi
	mov	x21, x0
	ldr	w0, [x0, #12]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w1, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _EINTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmn	w8, w9
	cset	w1, eq
LBB0_3:
Lloh3:
	adrp	x8, _MCDI_RPC_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCDI_RPC_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	cmp	w0, #0
	b.le	LBB0_6
; %bb.4:
	ldr	x4, [x21]
	cmp	x4, x19
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x21, #8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_netif_dbg
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _hw@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x5, x19
	bl	_netif_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_MCDI_RPC_TIMEOUT,4,2           ; @MCDI_RPC_TIMEOUT
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCDI proxy timeout %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"MCDI proxy unexpected handle %d (expected %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_efx_mcdi_proxy_wait
.subsections_via_symbols
