	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_send_scan_abort
_iwl_send_scan_abort:                   ## @iwl_send_scan_abort
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_REPLY_SCAN_ABORT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_STATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_STATUS_SCAN_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_STATUS_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_dvm_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_CAN_ABORT_STATUS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %rdi
	je	LBB0_7
## %bb.6:
	callq	_le32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_SCAN
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_iwl_free_resp
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_REPLY_SCAN_ABORT_CMD,4,2       ## @REPLY_SCAN_ABORT_CMD
	.comm	_STATUS_READY,4,2               ## @STATUS_READY
	.comm	_STATUS_SCAN_HW,4,2             ## @STATUS_SCAN_HW
	.comm	_STATUS_FW_ERROR,4,2            ## @STATUS_FW_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CAN_ABORT_STATUS,8,3           ## @CAN_ABORT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCAN_ABORT ret %d.\n"

	.no_dead_strip	_iwl_send_scan_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_send_scan_abort
_iwl_send_scan_abort:                   ; @iwl_send_scan_abort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _CMD_WANT_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REPLY_SCAN_ABORT_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REPLY_SCAN_ABORT_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x8, _STATUS_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_READY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _STATUS_SCAN_HW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATUS_SCAN_HW@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _STATUS_FW_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATUS_FW_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	x1, sp
	mov	x0, x19
	bl	_iwl_dvm_send_cmd
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh18:
	adrp	x8, _CAN_ABORT_STATUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAN_ABORT_STATUS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	bl	_le32_to_cpu
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, sp
	bl	_iwl_free_resp
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_REPLY_SCAN_ABORT_CMD,4,2       ; @REPLY_SCAN_ABORT_CMD
	.comm	_STATUS_READY,4,2               ; @STATUS_READY
	.comm	_STATUS_SCAN_HW,4,2             ; @STATUS_SCAN_HW
	.comm	_STATUS_FW_ERROR,4,2            ; @STATUS_FW_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CAN_ABORT_STATUS,8,3           ; @CAN_ABORT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCAN_ABORT ret %d.\n"

	.no_dead_strip	_iwl_send_scan_abort
.subsections_via_symbols
