	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_send_request
_efx_mcdi_send_request:                 ## @efx_mcdi_send_request
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_efx_mcdi
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	_MCDI_STATE_QUIESCENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_BUG_ON
	leaq	48(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	incl	16(%r13)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_SEQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%r13), %rax
	movq	_MCDI_MODE_EVENTS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MCDI_HEADER_XFLAGS_EVREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	andl	16(%r13), %r14d
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_MCDI_HEADER_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCDI_HEADER_RESYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MCDI_HEADER_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MCDI_HEADER_DATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MCDI_HEADER_SEQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_MCDI_HEADER_XFLAGS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	_MCDI_HEADER_NOT_EPOCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	xorl	%r15d, %r15d
	cmpl	$0, 32(%r13)
	sete	%r15b
	subq	$8, %rsp
	xorl	%edx, %edx
	movl	$1, %r8d
	pushq	%r15
	pushq	%rdi
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_EFX_POPULATE_DWORD_7
	addq	$80, %rsp
	movl	$4, %edx
	jmp	LBB0_5
LBB0_4:
	movq	_MCDI_CTL_SDU_LEN_MAX_V2@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setb	%dil
	callq	_BUG_ON
	movq	_MCDI_HEADER_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCDI_HEADER_RESYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MCDI_HEADER_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MC_CMD_V2_EXTN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MCDI_HEADER_DATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_MCDI_HEADER_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MCDI_HEADER_XFLAGS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	_MCDI_HEADER_NOT_EPOCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	xorl	%r10d, %r10d
	cmpl	$0, 32(%r13)
	sete	%r10b
	subq	$8, %rsp
	xorl	%edx, %edx
	movl	$1, %r8d
	pushq	%r10
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rdi
	pushq	%r14
	pushq	%r15
	pushq	$0
	pushq	%r11
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_EFX_POPULATE_DWORD_7
	addq	$80, %rsp
	movq	_MC_CMD_V2_EXTN_IN_EXTENDED_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MC_CMD_V2_EXTN_IN_ACTUAL_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rbx, %r8
	callq	_EFX_POPULATE_DWORD_2
	movl	$8, %edx
LBB0_5:
	movq	(%r12), %rax
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	*8(%rax)
	movl	$0, 32(%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDI_STATE_QUIESCENT,8,3       ## @MCDI_STATE_QUIESCENT
	.comm	_SEQ_MASK,4,2                   ## @SEQ_MASK
	.comm	_MCDI_MODE_EVENTS,8,3           ## @MCDI_MODE_EVENTS
	.comm	_MCDI_HEADER_XFLAGS_EVREQ,4,2   ## @MCDI_HEADER_XFLAGS_EVREQ
	.comm	_MCDI_HEADER_RESPONSE,4,2       ## @MCDI_HEADER_RESPONSE
	.comm	_MCDI_HEADER_RESYNC,4,2         ## @MCDI_HEADER_RESYNC
	.comm	_MCDI_HEADER_CODE,4,2           ## @MCDI_HEADER_CODE
	.comm	_MCDI_HEADER_DATALEN,4,2        ## @MCDI_HEADER_DATALEN
	.comm	_MCDI_HEADER_SEQ,4,2            ## @MCDI_HEADER_SEQ
	.comm	_MCDI_HEADER_XFLAGS,4,2         ## @MCDI_HEADER_XFLAGS
	.comm	_MCDI_HEADER_NOT_EPOCH,4,2      ## @MCDI_HEADER_NOT_EPOCH
	.comm	_MCDI_CTL_SDU_LEN_MAX_V2,8,3    ## @MCDI_CTL_SDU_LEN_MAX_V2
	.comm	_MC_CMD_V2_EXTN,4,2             ## @MC_CMD_V2_EXTN
	.comm	_MC_CMD_V2_EXTN_IN_EXTENDED_CMD,4,2 ## @MC_CMD_V2_EXTN_IN_EXTENDED_CMD
	.comm	_MC_CMD_V2_EXTN_IN_ACTUAL_LEN,4,2 ## @MC_CMD_V2_EXTN_IN_ACTUAL_LEN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_hw,4,2                         ## @hw
	.no_dead_strip	_efx_mcdi_send_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_send_request
_efx_mcdi_send_request:                 ; @efx_mcdi_send_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_efx_mcdi
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _MCDI_STATE_QUIESCENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCDI_STATE_QUIESCENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_BUG_ON
	add	x24, x22, #48
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	mov	x0, x24
	bl	_spin_unlock_bh
	ldr	w8, [x22, #16]
Lloh6:
	adrp	x9, _SEQ_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEQ_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w24, w9, w8
	ldr	x8, [x22, #24]
Lloh9:
	adrp	x9, _MCDI_MODE_EVENTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCDI_MODE_EVENTS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _MCDI_HEADER_XFLAGS_EVREQ@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MCDI_HEADER_XFLAGS_EVREQ@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w25, w10, wzr, eq
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _MCDI_HEADER_RESPONSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCDI_HEADER_RESPONSE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MCDI_HEADER_RESYNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCDI_HEADER_RESYNC@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _MCDI_HEADER_CODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MCDI_HEADER_CODE@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
Lloh24:
	adrp	x8, _MCDI_HEADER_DATALEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MCDI_HEADER_DATALEN@GOTPAGEOFF]
Lloh26:
	ldr	w7, [x8]
Lloh27:
	adrp	x8, _MCDI_HEADER_SEQ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MCDI_HEADER_SEQ@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MCDI_HEADER_XFLAGS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MCDI_HEADER_XFLAGS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _MCDI_HEADER_NOT_EPOCH@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MCDI_HEADER_NOT_EPOCH@GOTPAGEOFF]
	ldr	w11, [x22, #32]
	cmp	w11, #0
	cset	w11, eq
Lloh35:
	ldr	w10, [x10]
	stp	w10, w11, [sp, #24]
	stp	w9, w25, [sp, #16]
	stp	w8, w24, [sp, #8]
	str	x19, [sp]
	mov	w2, #0
	mov	w4, #1
	mov	x6, x23
	bl	_EFX_POPULATE_DWORD_7
	mov	w2, #4
	b	LBB0_3
LBB0_2:
Lloh36:
	adrp	x8, _MCDI_CTL_SDU_LEN_MAX_V2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MCDI_CTL_SDU_LEN_MAX_V2@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w0, lo
	bl	_BUG_ON
Lloh39:
	adrp	x8, _MCDI_HEADER_RESPONSE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MCDI_HEADER_RESPONSE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _MCDI_HEADER_RESYNC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MCDI_HEADER_RESYNC@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x8, _MCDI_HEADER_CODE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MCDI_HEADER_CODE@GOTPAGEOFF]
Lloh47:
	ldr	w5, [x8]
Lloh48:
	adrp	x8, _MC_CMD_V2_EXTN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MC_CMD_V2_EXTN@GOTPAGEOFF]
Lloh50:
	ldr	w6, [x8]
Lloh51:
	adrp	x8, _MCDI_HEADER_DATALEN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MCDI_HEADER_DATALEN@GOTPAGEOFF]
Lloh53:
	ldr	w7, [x8]
Lloh54:
	adrp	x8, _MCDI_HEADER_SEQ@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MCDI_HEADER_SEQ@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _MCDI_HEADER_XFLAGS@GOTPAGE
Lloh58:
	ldr	x9, [x9, _MCDI_HEADER_XFLAGS@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
Lloh60:
	adrp	x10, _MCDI_HEADER_NOT_EPOCH@GOTPAGE
Lloh61:
	ldr	x10, [x10, _MCDI_HEADER_NOT_EPOCH@GOTPAGEOFF]
	ldr	w11, [x22, #32]
	cmp	w11, #0
	cset	w11, eq
Lloh62:
	ldr	w10, [x10]
	stp	w10, w11, [sp, #24]
	stp	w9, w25, [sp, #16]
	stp	w8, w24, [sp, #8]
	str	xzr, [sp]
	mov	w2, #0
	mov	w4, #1
	bl	_EFX_POPULATE_DWORD_7
Lloh63:
	adrp	x8, _MC_CMD_V2_EXTN_IN_EXTENDED_CMD@GOTPAGE
Lloh64:
	ldr	x8, [x8, _MC_CMD_V2_EXTN_IN_EXTENDED_CMD@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _MC_CMD_V2_EXTN_IN_ACTUAL_LEN@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MC_CMD_V2_EXTN_IN_ACTUAL_LEN@GOTPAGEOFF]
Lloh68:
	ldr	w3, [x8]
	mov	x2, x23
	mov	x4, x19
	bl	_EFX_POPULATE_DWORD_2
	mov	w2, #8
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	add	x1, sp, #40
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	blr	x8
	str	wzr, [x22, #32]
	ldr	x8, [sp, #56]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_STATE_QUIESCENT,8,3       ; @MCDI_STATE_QUIESCENT
	.comm	_SEQ_MASK,4,2                   ; @SEQ_MASK
	.comm	_MCDI_MODE_EVENTS,8,3           ; @MCDI_MODE_EVENTS
	.comm	_MCDI_HEADER_XFLAGS_EVREQ,4,2   ; @MCDI_HEADER_XFLAGS_EVREQ
	.comm	_MCDI_HEADER_RESPONSE,4,2       ; @MCDI_HEADER_RESPONSE
	.comm	_MCDI_HEADER_RESYNC,4,2         ; @MCDI_HEADER_RESYNC
	.comm	_MCDI_HEADER_CODE,4,2           ; @MCDI_HEADER_CODE
	.comm	_MCDI_HEADER_DATALEN,4,2        ; @MCDI_HEADER_DATALEN
	.comm	_MCDI_HEADER_SEQ,4,2            ; @MCDI_HEADER_SEQ
	.comm	_MCDI_HEADER_XFLAGS,4,2         ; @MCDI_HEADER_XFLAGS
	.comm	_MCDI_HEADER_NOT_EPOCH,4,2      ; @MCDI_HEADER_NOT_EPOCH
	.comm	_MCDI_CTL_SDU_LEN_MAX_V2,8,3    ; @MCDI_CTL_SDU_LEN_MAX_V2
	.comm	_MC_CMD_V2_EXTN,4,2             ; @MC_CMD_V2_EXTN
	.comm	_MC_CMD_V2_EXTN_IN_EXTENDED_CMD,4,2 ; @MC_CMD_V2_EXTN_IN_EXTENDED_CMD
	.comm	_MC_CMD_V2_EXTN_IN_ACTUAL_LEN,4,2 ; @MC_CMD_V2_EXTN_IN_ACTUAL_LEN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_hw,4,2                         ; @hw
	.no_dead_strip	_efx_mcdi_send_request
.subsections_via_symbols
