	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_get_tx_power
_brcmf_cfg80211_get_tx_power:           ## @brcmf_cfg80211_get_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	%rdx, %r14
	movq	%rsi, %r15
	callq	_wiphy_to_cfg
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_wdev_to_vif
	movq	%rax, %r13
	movq	(%rbx), %r15
	movl	$0, -44(%rbp)
	movq	_TRACE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	%r13, %rdi
	callq	_check_vif_up
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_brcmf_fil_iovar_int_get
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_bphy_err
	movl	-44(%rbp), %edx
	movl	(%r14), %ecx
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	movl	-44(%rbp), %edx
	movq	_WL_TXPWR_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, (%r14)
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_6:
	movl	%r12d, %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\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"qtxpower"

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

	.comm	_WL_TXPWR_OVERRIDE,4,2          ## @WL_TXPWR_OVERRIDE
L_.str.3:                               ## @.str.3
	.asciz	"Exit (0x%x %d)\n"

	.no_dead_strip	_brcmf_cfg80211_get_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_get_tx_power
_brcmf_cfg80211_get_tx_power:           ; @brcmf_cfg80211_get_tx_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	bl	_wiphy_to_cfg
	mov	x21, x0
	mov	x0, x20
	bl	_wdev_to_vif
	mov	x20, x0
	ldr	x21, [x21]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x22, _TRACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRACE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x20
	bl	_check_vif_up
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #28
	bl	_brcmf_fil_iovar_int_get
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_bphy_err
	ldr	w8, [sp, #28]
	ldr	w9, [x19]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #28]
Lloh11:
	adrp	x9, _WL_TXPWR_OVERRIDE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WL_TXPWR_OVERRIDE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bics	w9, w8, w9
	add	w10, w9, #3
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	str	w9, [x19]
LBB0_5:
	ldr	w0, [x22]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"qtxpower"

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

	.comm	_WL_TXPWR_OVERRIDE,4,2          ; @WL_TXPWR_OVERRIDE
l_.str.3:                               ; @.str.3
	.asciz	"Exit (0x%x %d)\n"

	.no_dead_strip	_brcmf_cfg80211_get_tx_power
.subsections_via_symbols
