	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_op_gen_stop_scan
_ath10k_wmi_op_gen_stop_scan:           ## @ath10k_wmi_op_gen_stop_scan
	.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
	cmpl	$4096, (%rsi)                   ## imm = 0x1000
	jge	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	_WMI_SCAN_STOP_ONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	$4096, 16(%rbx)                 ## imm = 0x1000
	jl	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_WMI_HOST_SCAN_REQ_ID_PREFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	16(%rbx), %r12d
	movq	_WMI_HOST_SCAN_REQUESTOR_ID_PREFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rbx), %r13d
	movq	(%rax), %r15
	movl	8(%rbx), %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	___cpu_to_le32
	movq	%rax, 24(%r15)
	movl	20(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r15)
	movl	%r13d, %edi
	callq	___cpu_to_le32
	movq	%rax, (%r15)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	16(%rbx), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WMI_SCAN_STOP_ONE,8,3          ## @WMI_SCAN_STOP_ONE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_HOST_SCAN_REQ_ID_PREFIX,4,2 ## @WMI_HOST_SCAN_REQ_ID_PREFIX
	.comm	_WMI_HOST_SCAN_REQUESTOR_ID_PREFIX,4,2 ## @WMI_HOST_SCAN_REQUESTOR_ID_PREFIX
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi stop scan reqid %d req_type %d vdev/scan_id %d\n"

	.no_dead_strip	_ath10k_wmi_op_gen_stop_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_op_gen_stop_scan
_ath10k_wmi_op_gen_stop_scan:           ; @ath10k_wmi_op_gen_stop_scan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ge	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _WMI_SCAN_STOP_ONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WMI_SCAN_STOP_ONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x20, #16]
	cmp	w8, #1, lsl #12                 ; =4096
	b.lt	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x19
	mov	w1, #32
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	w8, [x20, #16]
Lloh5:
	adrp	x9, _WMI_HOST_SCAN_REQ_ID_PREFIX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMI_HOST_SCAN_REQ_ID_PREFIX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _WMI_HOST_SCAN_REQUESTOR_ID_PREFIX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WMI_HOST_SCAN_REQUESTOR_ID_PREFIX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w23, w9, w8
	ldr	x24, [x0]
	ldr	w0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x24, #24]
	ldr	w0, [x20, #20]
	bl	___cpu_to_le32
	str	x0, [x24, #16]
	mov	x0, x22
	bl	___cpu_to_le32
	str	x0, [x24, #8]
	mov	x0, x23
	bl	___cpu_to_le32
	str	x0, [x24]
Lloh11:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w3, [x20]
	ldr	w4, [x20, #8]
	ldr	w5, [x20, #16]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WMI_SCAN_STOP_ONE,8,3          ; @WMI_SCAN_STOP_ONE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_HOST_SCAN_REQ_ID_PREFIX,4,2 ; @WMI_HOST_SCAN_REQ_ID_PREFIX
	.comm	_WMI_HOST_SCAN_REQUESTOR_ID_PREFIX,4,2 ; @WMI_HOST_SCAN_REQUESTOR_ID_PREFIX
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi stop scan reqid %d req_type %d vdev/scan_id %d\n"

	.no_dead_strip	_ath10k_wmi_op_gen_stop_scan
.subsections_via_symbols
