	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_set_power_params   ## -- Begin function wcn36xx_smd_set_power_params
	.p2align	4, 0x90
_wcn36xx_smd_set_power_params:          ## @wcn36xx_smd_set_power_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_WCN36XX_HAL_SET_POWER_PARAMS_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movabsq	$8589934593, %r14               ## imm = 0x200000001
	movq	%r14, %rdi
	callq	_INIT_HAL_MSG
	movq	%rbx, %rdi
	callq	_WCN36XX_LISTEN_INTERVAL
                                        ## kill: def $eax killed $eax def $rax
	shlq	$32, %rax
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_PREPARE_HAL_BUF
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wcn36xx_smd_send_and_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_wcn36xx_err
LBB0_2:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_SET_POWER_PARAMS_REQ,4,2 ## @WCN36XX_HAL_SET_POWER_PARAMS_REQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending hal_set_power_params failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_set_power_params   ; -- Begin function wcn36xx_smd_set_power_params
	.p2align	2
_wcn36xx_smd_set_power_params:          ; @wcn36xx_smd_set_power_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_SET_POWER_PARAMS_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_SET_POWER_PARAMS_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #1
	movk	x0, #2, lsl #32
	bl	_INIT_HAL_MSG
	mov	x0, x19
	bl	_WCN36XX_LISTEN_INTERVAL
                                        ; kill: def $w0 killed $w0 def $x0
	lsl	x2, x0, #32
	ldr	w0, [x19, #4]
	mov	x1, #1
	movk	x1, #2, lsl #32
	bl	_PREPARE_HAL_BUF
	mov	x0, x19
	mov	w1, #0
	bl	_wcn36xx_smd_send_and_wait
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wcn36xx_err
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_SET_POWER_PARAMS_REQ,4,2 ; @WCN36XX_HAL_SET_POWER_PARAMS_REQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending hal_set_power_params failed\n"

.subsections_via_symbols
