	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_tx_power_cfg
_mwifiex_cmd_tx_power_cfg:              ## @mwifiex_cmd_tx_power_cfg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	_HostCmd_CMD_TXPWR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$16, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.1:
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.2:
	cmpl	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	16(%r12), %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	24(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_memmove
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movq	80(%rbx), %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax), %edi
	addl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memmove
LBB0_5:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_TXPWR_CFG,4,2      ## @HostCmd_CMD_TXPWR_CFG
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.no_dead_strip	_mwifiex_cmd_tx_power_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_tx_power_cfg
_mwifiex_cmd_tx_power_cfg:              ; @mwifiex_cmd_tx_power_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _HostCmd_CMD_TXPWR_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_TXPWR_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
Lloh3:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w0, w8, #16
	bl	_cpu_to_le16
	str	x0, [x21]
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x22, #16]
	bl	_le16_to_cpu
	add	w2, w0, #24
	mov	x0, x19
	mov	x1, x22
	bl	_memmove
	ldr	x0, [x21]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	x0, [x21, #80]
	bl	_le16_to_cpu
	add	w8, w22, w0
	add	w0, w8, #8
	bl	_cpu_to_le16
	str	x0, [x21]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #16
	bl	_memmove
LBB0_5:
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_TXPWR_CFG,4,2      ; @HostCmd_CMD_TXPWR_CFG
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.no_dead_strip	_mwifiex_cmd_tx_power_cfg
.subsections_via_symbols
