	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_tx_power           ## -- Begin function mwifiex_set_tx_power
	.p2align	4, 0x90
_mwifiex_set_tx_power:                  ## @mwifiex_set_tx_power
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpl	$0, 8(%rsi)
	je	LBB0_4
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_4:
	movq	16(%r12), %r15
	movq	(%r14), %r8
	movq	8(%r14), %r9
	cmpq	%r8, %r15
	jl	LBB0_6
## %bb.5:
	cmpq	%r9, %r15
	jg	LBB0_6
LBB0_2:
	movq	_MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %rbx
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	cmpl	$0, 8(%r12)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, (%r12)
	movq	%r15, %r12
	jne	LBB0_10
## %bb.9:
	movq	(%r14), %r12
LBB0_10:
	movl	$1, %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movq	_TLV_TYPE_POWER_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 72(%rbx)
	movl	$192, %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%rbx)
	movabsq	$12884901888, %rax              ## imm = 0x300000000
	movq	%rax, 128(%rbx)
	movq	_MOD_CLASS_HR_DSSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 168(%rbx)
	movq	$0, 160(%rbx)
	movq	%r12, 152(%rbx)
	movq	%r15, 144(%rbx)
	movabsq	$30064771072, %rax              ## imm = 0x700000000
	movq	%rax, 176(%rbx)
	movq	_MOD_CLASS_OFDM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 216(%rbx)
	movq	$0, 208(%rbx)
	movq	%r12, 200(%rbx)
	movq	%r15, 192(%rbx)
	movabsq	$137438953472, %rax             ## imm = 0x2000000000
	movq	%rax, 224(%rbx)
	movq	_MOD_CLASS_HT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 264(%rbx)
	movq	$0, 256(%rbx)
	movq	%r12, 248(%rbx)
	movq	%r15, 240(%rbx)
	movq	_HT_BW_20@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 232(%rbx)
	movq	%rax, 272(%rbx)
	movq	%rcx, 312(%rbx)
	movq	$0, 304(%rbx)
	movq	%r12, 296(%rbx)
	movq	%r15, 288(%rbx)
	movq	_HT_BW_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 280(%rbx)
LBB0_11:
	movq	_HostCmd_CMD_TXPWR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_6:
	movl	16(%r14), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_mwifiex_dbg
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"txpower value %d dBm\tis out of range (%d dBm-%d dBm)\n"

	.comm	_MWIFIEX_SIZE_OF_CMD_BUFFER,4,2 ## @MWIFIEX_SIZE_OF_CMD_BUFFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_TLV_TYPE_POWER_GROUP,4,2       ## @TLV_TYPE_POWER_GROUP
	.comm	_MOD_CLASS_HR_DSSS,8,3          ## @MOD_CLASS_HR_DSSS
	.comm	_MOD_CLASS_OFDM,8,3             ## @MOD_CLASS_OFDM
	.comm	_MOD_CLASS_HT,8,3               ## @MOD_CLASS_HT
	.comm	_HT_BW_20,4,2                   ## @HT_BW_20
	.comm	_HT_BW_40,4,2                   ## @HT_BW_40
	.comm	_HostCmd_CMD_TXPWR_CFG,4,2      ## @HostCmd_CMD_TXPWR_CFG
.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 mwifiex_set_tx_power
lCPI0_0:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
lCPI0_1:
	.long	0                               ; 0x0
	.long	7                               ; 0x7
lCPI0_2:
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mwifiex_set_tx_power
	.p2align	2
_mwifiex_set_tx_power:                  ; @mwifiex_set_tx_power
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_4
LBB0_2:
	ldr	x20, [x22, #16]
	ldp	x4, x5, [x19]
	cmp	x20, x4
	ccmp	x20, x5, #0, ge
	b.le	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWIFIEX_SIZE_OF_CMD_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x23, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	x8, [x22]
	mov	x22, x20
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x22, [x19]
LBB0_8:
	mov	w0, #1
	bl	_cpu_to_le32
	str	w0, [x21]
Lloh13:
	adrp	x8, _TLV_TYPE_POWER_GROUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLV_TYPE_POWER_GROUP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #72]
	mov	w0, #192
	bl	_cpu_to_le16
	str	x0, [x21, #64]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21, #128]
Lloh18:
	adrp	x8, _MOD_CLASS_HR_DSSS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MOD_CLASS_HR_DSSS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	xzr, x8, [x21, #160]
	stp	x20, x22, [x21, #144]
Lloh21:
	adrp	x8, lCPI0_1@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x21, #176]
Lloh23:
	adrp	x8, _MOD_CLASS_OFDM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MOD_CLASS_OFDM@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	stp	xzr, x8, [x21, #208]
	stp	x20, x22, [x21, #192]
Lloh26:
	adrp	x8, lCPI0_2@PAGE
Lloh27:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x21, #224]
Lloh28:
	adrp	x8, _MOD_CLASS_HT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MOD_CLASS_HT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	stp	xzr, x8, [x21, #256]
Lloh31:
	adrp	x9, _HT_BW_20@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HT_BW_20@GOTPAGEOFF]
	stp	x20, x22, [x21, #240]
Lloh33:
	ldr	w9, [x9]
	str	w9, [x21, #232]
	str	d0, [x21, #272]
	stp	xzr, x8, [x21, #304]
	stp	x20, x22, [x21, #288]
Lloh34:
	adrp	x8, _HT_BW_40@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HT_BW_40@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21, #280]
LBB0_9:
Lloh37:
	adrp	x8, _HostCmd_CMD_TXPWR_CFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HostCmd_CMD_TXPWR_CFG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #0
	mov	x4, x21
	mov	w5, #1
	bl	_mwifiex_send_cmd
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_11
LBB0_10:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdrp	Lloh26, Lloh28
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txpower value %d dBm\tis out of range (%d dBm-%d dBm)\n"

	.comm	_MWIFIEX_SIZE_OF_CMD_BUFFER,4,2 ; @MWIFIEX_SIZE_OF_CMD_BUFFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_TLV_TYPE_POWER_GROUP,4,2       ; @TLV_TYPE_POWER_GROUP
	.comm	_MOD_CLASS_HR_DSSS,8,3          ; @MOD_CLASS_HR_DSSS
	.comm	_MOD_CLASS_OFDM,8,3             ; @MOD_CLASS_OFDM
	.comm	_MOD_CLASS_HT,8,3               ; @MOD_CLASS_HT
	.comm	_HT_BW_20,4,2                   ; @HT_BW_20
	.comm	_HT_BW_40,4,2                   ; @HT_BW_40
	.comm	_HostCmd_CMD_TXPWR_CFG,4,2      ; @HostCmd_CMD_TXPWR_CFG
.subsections_via_symbols
