	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_cfg80211_get_txpower
_ath6kl_cfg80211_get_txpower:           ## @ath6kl_cfg80211_get_txpower
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_wiphy_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ath6kl_vif_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ath6kl_cfg80211_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	$255, (%r15)
	movl	8(%r15), %edi
	movl	(%rbx), %esi
	callq	_ath6kl_wmi_get_tx_pwr_cmd
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%r15), %edi
	xorl	%esi, %esi
	cmpl	$255, (%r15)
	setne	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	callq	_wait_event_interruptible_timeout
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_err
	movq	_EINTR@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath6kl_wmi_get_tx_pwr_cmd failed\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_current,4,2                    ## @current
L_.str.1:                               ## @.str.1
	.asciz	"target did not respond\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_ath6kl_cfg80211_get_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_cfg80211_get_txpower
_ath6kl_cfg80211_get_txpower:           ; @ath6kl_cfg80211_get_txpower
	.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	x19, x2
	bl	_wiphy_priv
	mov	x20, x0
	bl	_ath6kl_vif_first
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_ath6kl_cfg80211_ready
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #4
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.3:
	mov	w8, #255
	str	w8, [x20]
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_ath6kl_wmi_get_tx_pwr_cmd
	cbz	x0, LBB0_8
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
LBB0_5:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	ldp	w8, w0, [x20]
	cmp	w8, #255
	cset	w1, ne
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w2, w8, w8, lsl #2
	bl	_wait_event_interruptible_timeout
Lloh10:
	adrp	x8, _current@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
Lloh15:
	adrp	x8, _EINTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath6kl_wmi_get_tx_pwr_cmd failed\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_current,4,2                    ; @current
l_.str.1:                               ; @.str.1
	.asciz	"target did not respond\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_ath6kl_cfg80211_get_txpower
.subsections_via_symbols
