	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_send_cmd_sync               ## -- Begin function il_send_cmd_sync
	.p2align	4, 0x90
_il_send_cmd_sync:                      ## @il_send_cmd_sync
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	addq	$24, %rdi
	callq	_lockdep_assert_held
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	callq	_BUG_ON
	movl	4(%r13), %edi
	callq	_BUG_ON
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_D_INFO
	movq	_S_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_D_INFO
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_il_enqueue_hcmd
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	20(%r14), %ebx
	movq	_S_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movq	_HOST_COMPLETE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_wait_event_timeout
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	_S_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IL_ERR
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_S_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	movl	%eax, %ebx
	movq	_HOST_COMPLETE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_S_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_D_INFO
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_12
## %bb.8:
	notl	%eax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	%r15d, %edx
	andl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_12
LBB0_9:
	movq	_S_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	negl	%ebx
	movq	8(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_il_free_pages
	movq	$0, 8(%r13)
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.16:
	cmpq	$0, 8(%r13)
	jne	LBB0_14
## %bb.17:
	movl	16(%r13), %edi
	callq	_il_get_cmd_string
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IL_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to send sync command %s\n"

	.comm	_S_HCMD_ACTIVE,4,2              ## @S_HCMD_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Setting HCMD_ACTIVE for command %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

	.comm	_HOST_COMPLETE_TIMEOUT,4,2      ## @HOST_COMPLETE_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"Error sending %s: time out after %dms.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Clearing HCMD_ACTIVE for command %s\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_S_RFKILL,4,2                   ## @S_RFKILL
L_.str.5:                               ## @.str.5
	.asciz	"Command %s aborted: RF KILL Switch\n"

	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.comm	_S_FW_ERROR,4,2                 ## @S_FW_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"Command %s failed: FW Error\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
L_.str.7:                               ## @.str.7
	.asciz	"Error: Response NULL in '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_send_cmd_sync               ; -- Begin function il_send_cmd_sync
	.p2align	2
_il_send_cmd_sync:                      ; @il_send_cmd_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	add	x0, x0, #24
	bl	_lockdep_assert_held
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	w0, [x19, #4]
	bl	_BUG_ON
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_INFO
Lloh5:
	adrp	x24, _S_HCMD_ACTIVE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _S_HCMD_ACTIVE@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x20, #16
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_INFO
	mov	x0, x20
	mov	x1, x19
	bl	_il_enqueue_hcmd
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w23, [x20, #20]
	ldr	w0, [x24]
	mov	x1, x22
	bl	_test_bit
	cmp	x0, #0
	cset	w1, eq
Lloh9:
	adrp	x25, _HOST_COMPLETE_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HOST_COMPLETE_TIMEOUT@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x23
	bl	_wait_event_timeout
	cbz	w0, LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _S_RFKILL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_RFKILL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IL_ERR
Lloh16:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
	str	x21, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IL_ERR
	b	LBB0_14
LBB0_5:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x23, x0
	ldr	w0, [x25]
	bl	_jiffies_to_msecs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_IL_ERR
	ldr	w0, [x24]
	mov	x1, x22
	bl	_clear_bit
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_INFO
Lloh24:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w10, [x19]
Lloh26:
	adrp	x9, _CMD_WANT_SKB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.8:
	ldp	x11, x10, [x20]
	ldr	x10, [x10, x11, lsl #3]
	mov	w11, w21
	lsl	x11, x11, #2
	ldr	w12, [x10, x11]
	bic	w9, w12, w9
	str	w9, [x10, x11]
	b	LBB0_12
LBB0_9:
Lloh29:
	adrp	x8, _S_FW_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S_FW_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.10:
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_IL_ERR
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
LBB0_12:
	neg	w21, w8
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_il_free_pages
	str	xzr, [x19, #8]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w8, [x19]
Lloh36:
	adrp	x9, _CMD_WANT_SKB@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
LBB0_17:
	mov	w21, #0
	b	LBB0_14
LBB0_18:
	ldr	w0, [x19, #16]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_IL_ERR
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to send sync command %s\n"

	.comm	_S_HCMD_ACTIVE,4,2              ; @S_HCMD_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Setting HCMD_ACTIVE for command %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

	.comm	_HOST_COMPLETE_TIMEOUT,4,2      ; @HOST_COMPLETE_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"Error sending %s: time out after %dms.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Clearing HCMD_ACTIVE for command %s\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_S_RFKILL,4,2                   ; @S_RFKILL
l_.str.5:                               ; @.str.5
	.asciz	"Command %s aborted: RF KILL Switch\n"

	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.comm	_S_FW_ERROR,4,2                 ; @S_FW_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"Command %s failed: FW Error\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
l_.str.7:                               ; @.str.7
	.asciz	"Error: Response NULL in '%s'\n"

.subsections_via_symbols
