	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_get_txdp              ## -- Begin function ath5k_hw_get_txdp
	.p2align	4, 0x90
_ath5k_hw_get_txdp:                     ## @ath5k_hw_get_txdp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	16(%rdi), %esi
	movl	%ebx, %edi
	callq	_AR5K_ASSERT_ENTRY
	movq	(%r14), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_4
## %bb.2:
	movq	_AR5K_NOQCU_TXDP1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	%ebx, %edi
	callq	_AR5K_QUEUE_TXDP
	movl	%eax, %esi
	jmp	LBB0_7
LBB0_4:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.5:
	movq	_AR5K_NOQCU_TXDP0@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath5k_hw_reg_read              ## TAILCALL
LBB0_8:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_NOQCU_TXDP0,4,2           ## @AR5K_NOQCU_TXDP0
	.comm	_AR5K_NOQCU_TXDP1,4,2           ## @AR5K_NOQCU_TXDP1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_get_txdp              ; -- Begin function ath5k_hw_get_txdp
	.p2align	2
_ath5k_hw_get_txdp:                     ; @ath5k_hw_get_txdp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #16]
	mov	x0, x20
	bl	_AR5K_ASSERT_ENTRY
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_AR5210@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w20, uxtw #2]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _AR5K_NOQCU_TXDP1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_NOQCU_TXDP1@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_AR5K_QUEUE_TXDP
	mov	x1, x0
	b	LBB0_7
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _AR5K_NOQCU_TXDP0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR5K_NOQCU_TXDP0@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath5k_hw_reg_read
LBB0_8:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_NOQCU_TXDP0,4,2           ; @AR5K_NOQCU_TXDP0
	.comm	_AR5K_NOQCU_TXDP1,4,2           ; @AR5K_NOQCU_TXDP1
.subsections_via_symbols
