	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_netdetect_query_results
_iwl_mvm_netdetect_query_results:       ## @iwl_mvm_netdetect_query_results
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_SCAN_OFFLOAD_PROFILES_QUERY_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_iwl_mvm_send_cmd
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_6
LBB0_2:
	movq	8(%r15), %rdi
	movq	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	4(,%rcx,8), %rbx
	movq	_IWL_SCAN_MAX_PROFILES@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	-48(%rbp), %rdi
	callq	_iwl_rx_packet_payload_len
	cltq
	cmpq	%rax, %rbx
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	shlq	$2, %r12
	movq	-48(%rbp), %rax
	movq	(%rax), %rbx
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r14)
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	movq	%r12, %rdx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_iwl_free_resp
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_SCAN_OFFLOAD_PROFILES_QUERY_CMD,4,2 ## @SCAN_OFFLOAD_PROFILES_QUERY_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to query matched profiles (%d)\n"

	.comm	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS,4,2 ## @IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS
	.comm	_IWL_SCAN_MAX_PROFILES,4,2      ## @IWL_SCAN_MAX_PROFILES
L_.str.1:                               ## @.str.1
	.asciz	"Invalid scan offload profiles query response!\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_iwl_mvm_netdetect_query_results
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_netdetect_query_results
_iwl_mvm_netdetect_query_results:       ; @iwl_mvm_netdetect_query_results
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _CMD_WANT_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCAN_OFFLOAD_PROFILES_QUERY_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCAN_OFFLOAD_PROFILES_QUERY_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	add	x1, sp, #16
	bl	_iwl_mvm_send_cmd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
	b	LBB0_6
LBB0_2:
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x8, _IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_fw_has_api
	mov	w8, #12
	mov	w9, #4
	cmp	x0, #0
	csel	x22, x9, x8, eq
Lloh11:
	adrp	x8, _IWL_SCAN_MAX_PROFILES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_SCAN_MAX_PROFILES@GOTPAGEOFF]
Lloh13:
	ldrsw	x21, [x8]
	ldr	x0, [sp, #16]
	bl	_iwl_rx_packet_payload_len
	cmp	x22, w0, sxtw
	b.ls	LBB0_4
; %bb.3:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	lsl	x20, x21, #2
	ldr	x8, [sp, #16]
	ldr	x21, [x8]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	ldr	w0, [x19]
	ldr	w1, [x21, #4]
	mov	x2, x20
	bl	_memcpy
	mov	w21, #0
LBB0_5:
	add	x0, sp, #16
	bl	_iwl_free_resp
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_SCAN_OFFLOAD_PROFILES_QUERY_CMD,4,2 ; @SCAN_OFFLOAD_PROFILES_QUERY_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to query matched profiles (%d)\n"

	.comm	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS,4,2 ; @IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS
	.comm	_IWL_SCAN_MAX_PROFILES,4,2      ; @IWL_SCAN_MAX_PROFILES
l_.str.1:                               ; @.str.1
	.asciz	"Invalid scan offload profiles query response!\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_iwl_mvm_netdetect_query_results
.subsections_via_symbols
