	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_send_cmd_async
_il_send_cmd_async:                     ## @il_send_cmd_async
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rsi), %eax
	sete	%dil
	callq	_BUG_ON
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_BUG_ON
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_il_generic_cmd_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_il_enqueue_hcmd
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_il_get_cmd_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_IL_ERR
	movl	%r14d, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_il_generic_cmd_callback,8,3    ## @il_generic_cmd_callback
	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

	.no_dead_strip	_il_send_cmd_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_send_cmd_async
_il_send_cmd_async:                     ; @il_send_cmd_async
	.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, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _CMD_WANT_SKB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _il_generic_cmd_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _il_generic_cmd_callback@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_2:
Lloh9:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_il_enqueue_hcmd
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_il_get_cmd_string
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_IL_ERR
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_il_generic_cmd_callback,8,3    ; @il_generic_cmd_callback
	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error sending %s: enqueue_hcmd failed: %d\n"

	.no_dead_strip	_il_send_cmd_async
.subsections_via_symbols
