	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_send_scan_abort
_il_send_scan_abort:                    ## @il_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	_C_SCAN_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_S_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_S_GEO_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_S_SCAN_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_S_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_il_send_cmd_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-32(%rbp), %rsi
	movq	(%rsi), %rax
	movq	_CAN_ABORT_STATUS@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_D_SCAN
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-32(%rbp), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_il_free_pages
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_C_SCAN_ABORT,4,2               ## @C_SCAN_ABORT
	.comm	_S_READY,4,2                    ## @S_READY
	.comm	_S_GEO_CONFIGURED,4,2           ## @S_GEO_CONFIGURED
	.comm	_S_SCAN_HW,4,2                  ## @S_SCAN_HW
	.comm	_S_FW_ERROR,4,2                 ## @S_FW_ERROR
	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
	.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	_il_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 il_send_scan_abort
_il_send_scan_abort:                    ; @il_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, _C_SCAN_ABORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_SCAN_ABORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x8, _S_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_READY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _S_GEO_CONFIGURED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_GEO_CONFIGURED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _S_SCAN_HW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_SCAN_HW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
Lloh15:
	adrp	x8, _S_FW_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S_FW_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	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_7:
	mov	x1, sp
	mov	x0, x19
	bl	_il_send_cmd_sync
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	x1, [sp]
	ldr	x8, [x1]
Lloh24:
	adrp	x9, _CAN_ABORT_STATUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAN_ABORT_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w20, #0
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_D_SCAN
Lloh29:
	adrp	x8, _EIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x1, [sp]
LBB0_11:
	mov	x0, x19
	bl	_il_free_pages
	b	LBB0_6
	.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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_C_SCAN_ABORT,4,2               ; @C_SCAN_ABORT
	.comm	_S_READY,4,2                    ; @S_READY
	.comm	_S_GEO_CONFIGURED,4,2           ; @S_GEO_CONFIGURED
	.comm	_S_SCAN_HW,4,2                  ; @S_SCAN_HW
	.comm	_S_FW_ERROR,4,2                 ; @S_FW_ERROR
	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
	.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	_il_send_scan_abort
.subsections_via_symbols
