	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_read_tgt_stats          ## -- Begin function ath6kl_read_tgt_stats
	.p2align	4, 0x90
_ath6kl_read_tgt_stats:                 ## @ath6kl_read_tgt_stats
	.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, %r15
	movq	%rdi, %r14
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_STATS_UPDATE_PEND@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	8(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_ath6kl_wmi_get_stats_cmd
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_up
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r14), %r12d
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	_WMI_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_wait_event_interruptible_timeout
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_up
	testq	%r15, %r15
	jg	LBB0_8
## %bb.5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_STATS_UPDATE_PEND,4,2          ## @STATS_UPDATE_PEND
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WMI_TIMEOUT,4,2                ## @WMI_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_read_tgt_stats          ; -- Begin function ath6kl_read_tgt_stats
	.p2align	2
_ath6kl_read_tgt_stats:                 ; @ath6kl_read_tgt_stats
	.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	x20, x1
	mov	x19, x0
	bl	_down_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x22, _STATS_UPDATE_PEND@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STATS_UPDATE_PEND@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_ath6kl_wmi_get_stats_cmd
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_up
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
	ldr	w21, [x19, #4]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w1, eq
Lloh6:
	adrp	x8, _WMI_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_wait_event_interruptible_timeout
	mov	x20, x0
	mov	x0, x19
	bl	_up
	cmp	x20, #0
	b.le	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_5
LBB0_8:
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_STATS_UPDATE_PEND,4,2          ; @STATS_UPDATE_PEND
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WMI_TIMEOUT,4,2                ; @WMI_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
