	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_txdp              ## -- Begin function ath5k_hw_set_txdp
	.p2align	4, 0x90
_ath5k_hw_set_txdp:                     ## @ath5k_hw_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	16(%rdi), %esi
	movl	%ebx, %edi
	callq	_AR5K_ASSERT_ENTRY
	movq	(%r15), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.4:
	movq	_AR5K_NOQCU_TXDP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_10
LBB0_7:
	movq	_AR5K_QCU_TXE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_AR5K_REG_READ_Q
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_AR5K_NOQCU_TXDP0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, %edi
	callq	_AR5K_QUEUE_TXDP
	movl	%eax, %edx
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ath5k_hw_reg_write
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_QCU_TXE,4,2               ## @AR5K_QCU_TXE
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_txdp              ; -- Begin function ath5k_hw_set_txdp
	.p2align	2
_ath5k_hw_set_txdp:                     ; @ath5k_hw_set_txdp
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w1, [x0, #16]
	mov	x0, x21
	bl	_AR5K_ASSERT_ENTRY
	ldr	x8, [x20]
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, [x20, #8]
	ldr	w8, [x8, w21, uxtw #2]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _AR5K_NOQCU_TXDP1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_NOQCU_TXDP1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _AR5K_QCU_TXE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_QCU_TXE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_AR5K_REG_READ_Q
	cbz	x0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _AR5K_NOQCU_TXDP0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR5K_NOQCU_TXDP0@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_AR5K_QUEUE_TXDP
	mov	x2, x0
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_ath5k_hw_reg_write
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_QCU_TXE,4,2               ; @AR5K_QCU_TXE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
