	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wcn36xx_smd_update_scan_params
LCPI0_0:
	.long	60                              ## 0x3c
	.long	120                             ## 0x78
	.long	60                              ## 0x3c
	.long	110                             ## 0x6e
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wcn36xx_smd_update_scan_params
	.p2align	4, 0x90
_wcn36xx_smd_update_scan_params:        ## @wcn36xx_smd_update_scan_params
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	_WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	-40(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_HAL_MSG
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -72(%rbp)
	movq	%rbx, -64(%rbp)
	movl	-32(%rbp), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [60,120,60,110]
	movups	%xmm0, -56(%rbp)
	movq	_PHY_SINGLE_CHANNEL_CENTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	8(%r14), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	-40(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PREPARE_HAL_BUF
	movq	_WCN36XX_DBG_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_wcn36xx_dbg
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	callq	_wcn36xx_smd_send_and_wait
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_wcn36xx_smd_update_scan_params_rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ,4,2 ## @WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ
	.comm	_PHY_SINGLE_CHANNEL_CENTERED,4,2 ## @PHY_SINGLE_CHANNEL_CENTERED
	.comm	_WCN36XX_DBG_HAL,4,2            ## @WCN36XX_DBG_HAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hal update scan params channel_count %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sending hal_update_scan_params failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"hal_update_scan_params response failed err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wcn36xx_smd_update_scan_params
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	60                              ; 0x3c
	.long	120                             ; 0x78
	.long	60                              ; 0x3c
	.long	110                             ; 0x6e
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wcn36xx_smd_update_scan_params
	.p2align	2
_wcn36xx_smd_update_scan_params:        ; @wcn36xx_smd_update_scan_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [sp, #32]
	str	x20, [sp, #40]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	str	q0, [sp, #48]
	add	x0, sp, #32
	bl	_INIT_HAL_MSG
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
Lloh7:
	adrp	x8, _PHY_SINGLE_CHANNEL_CENTERED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_SINGLE_CHANNEL_CENTERED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w0, [x19, #8]
	str	d8, [sp, #32]
	str	x20, [sp, #40]
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	str	q0, [sp, #48]
	str	w8, [sp, #68]
	add	x1, sp, #32
	bl	_PREPARE_HAL_BUF
Lloh10:
	adrp	x8, _WCN36XX_DBG_HAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WCN36XX_DBG_HAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wcn36xx_dbg
	mov	x0, x19
	bl	_wcn36xx_smd_send_and_wait
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldp	w1, w0, [x19, #4]
	bl	_wcn36xx_smd_update_scan_params_rsp
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	str	x20, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_wcn36xx_err
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ,4,2 ; @WCN36XX_HAL_UPDATE_SCAN_PARAM_REQ
	.comm	_PHY_SINGLE_CHANNEL_CENTERED,4,2 ; @PHY_SINGLE_CHANNEL_CENTERED
	.comm	_WCN36XX_DBG_HAL,4,2            ; @WCN36XX_DBG_HAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hal update scan params channel_count %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sending hal_update_scan_params failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"hal_update_scan_params response failed err=%d\n"

.subsections_via_symbols
