	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_set_tx_power
_brcmf_cfg80211_set_tx_power:           ## @brcmf_cfg80211_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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	callq	_wiphy_to_cfg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cfg_to_ndev
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r15), %edi
	callq	_check_vif_up
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leal	-128(%r13), %eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.5:
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.8:
	shll	$2, %r12d
	movl	%r12d, %edi
	callq	_MBM_TO_DBM
	cmpl	$127, %eax
	movl	$127, %r12d
	cmovll	%eax, %r12d
	movq	_WL_TXPWR_OVERRIDE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movl	$127, %r12d
	cmpl	$130, %r13d
	jne	LBB0_4
LBB0_9:
	movq	_WL_RADIO_SW_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_BRCMF_C_SET_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcmf_fil_cmd_int_set
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_brcmf_fil_iovar_int_set
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	$127, %r12d
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
LBB0_14:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WL_TXPWR_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%r12d, %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter %d %d\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"TX_POWER_FIXED - dbm is negative\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WL_TXPWR_OVERRIDE,4,2          ## @WL_TXPWR_OVERRIDE
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported type %d\n"

	.comm	_WL_RADIO_SW_DISABLE,4,2        ## @WL_RADIO_SW_DISABLE
	.comm	_BRCMF_C_SET_RADIO,4,2          ## @BRCMF_C_SET_RADIO
L_.str.3:                               ## @.str.3
	.asciz	"WLC_SET_RADIO error (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"qtxpower"

L_.str.5:                               ## @.str.5
	.asciz	"qtxpower error (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Exit %d (qdbm)\n"

	.no_dead_strip	_brcmf_cfg80211_set_tx_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_set_tx_power
_brcmf_cfg80211_set_tx_power:           ; @brcmf_cfg80211_set_tx_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	bl	_wiphy_to_cfg
	mov	x19, x0
	bl	_cfg_to_ndev
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x19]
Lloh0:
	adrp	x23, _TRACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TRACE@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_brcmf_dbg
	ldr	w0, [x20]
	bl	_check_vif_up
	cbz	w0, LBB0_4
; %bb.1:
	sub	w8, w21, #128
Lloh4:
	adrp	x24, _WL_TXPWR_OVERRIDE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WL_TXPWR_OVERRIDE@GOTPAGEOFF]
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.2:
	tbnz	w22, #31, LBB0_12
; %bb.3:
	lsl	w0, w22, #2
	bl	_MBM_TO_DBM
	mov	w8, #127
	cmp	w0, #127
	csel	w8, w0, w8, lt
	ldr	w9, [x24]
	orr	w21, w8, w9
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_5:
	cmp	w21, #130
	b.ne	LBB0_11
; %bb.6:
	mov	w21, #127
LBB0_7:
Lloh9:
	adrp	x8, _WL_RADIO_SW_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WL_RADIO_SW_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w2, w8, #16
Lloh12:
	adrp	x8, _BRCMF_C_SET_RADIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMF_C_SET_RADIO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_brcmf_fil_cmd_int_set
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.8:
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
LBB0_9:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_fil_iovar_int_set
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.10:
	str	x20, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
	b	LBB0_14
LBB0_11:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_bphy_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	mov	w21, #127
LBB0_14:
	ldr	w0, [x23]
	ldr	w8, [x24]
	bic	w2, w21, w8
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_brcmf_dbg
LBB0_15:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter %d %d\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"TX_POWER_FIXED - dbm is negative\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WL_TXPWR_OVERRIDE,4,2          ; @WL_TXPWR_OVERRIDE
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported type %d\n"

	.comm	_WL_RADIO_SW_DISABLE,4,2        ; @WL_RADIO_SW_DISABLE
	.comm	_BRCMF_C_SET_RADIO,4,2          ; @BRCMF_C_SET_RADIO
l_.str.3:                               ; @.str.3
	.asciz	"WLC_SET_RADIO error (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"qtxpower"

l_.str.5:                               ; @.str.5
	.asciz	"qtxpower error (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Exit %d (qdbm)\n"

	.no_dead_strip	_brcmf_cfg80211_set_tx_power
.subsections_via_symbols
