	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_updatetxtriglevel     ## -- Begin function ath9k_hw_updatetxtriglevel
	.p2align	4, 0x90
_ath9k_hw_updatetxtriglevel:            ## @ath9k_hw_updatetxtriglevel
	.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	(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	8(%rdi), %rax
	jge	LBB0_7
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_ath9k_hw_disable_interrupts
	movq	_AR_TXCFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movq	%rax, %r15
	movq	_AR_FTRIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_MS
	movq	%rax, %r14
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	cmpq	8(%r13), %r14
	setl	%r12b
	jmp	LBB0_4
LBB0_3:
	movq	_MIN_TX_FIFO_THRESHOLD@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	(%rax), %r14
	setg	%r12b
	negq	%r12
LBB0_4:
	addq	%r12, %r14
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %ebx
	movq	_AR_FTRIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, %rax
	notq	%rax
	andq	%rax, %r15
	movq	%r14, %rdi
	callq	_SM
	orq	%rax, %r15
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_REG_WRITE
LBB0_6:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	setne	%bl
	movq	%r13, %rdi
	callq	_ath9k_hw_enable_interrupts
	movq	%r14, (%r13)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_TXCFG,4,2                   ## @AR_TXCFG
	.comm	_AR_FTRIG,8,3                   ## @AR_FTRIG
	.comm	_MIN_TX_FIFO_THRESHOLD,8,3      ## @MIN_TX_FIFO_THRESHOLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_updatetxtriglevel     ; -- Begin function ath9k_hw_updatetxtriglevel
	.p2align	2
_ath9k_hw_updatetxtriglevel:            ; @ath9k_hw_updatetxtriglevel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	bl	_ath9k_hw_disable_interrupts
Lloh0:
	adrp	x22, _AR_TXCFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR_TXCFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	mov	x20, x0
Lloh2:
	adrp	x23, _AR_FTRIG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AR_FTRIG@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_MS
	cbz	w21, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	cset	w24, lt
	add	x21, x24, x0
	cbz	x24, LBB0_4
LBB0_3:
	ldr	w22, [x22]
	ldr	x1, [x23]
	bic	x20, x20, x1
	mov	x0, x21
	bl	_SM
	orr	x2, x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
LBB0_4:
	cmp	x24, #0
	cset	w20, ne
	mov	x0, x19
	bl	_ath9k_hw_enable_interrupts
	str	x21, [x19]
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh4:
	adrp	x8, _MIN_TX_FIFO_THRESHOLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MIN_TX_FIFO_THRESHOLD@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	x24, gt
	add	x21, x24, x0
	cbnz	x24, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_TXCFG,4,2                   ; @AR_TXCFG
	.comm	_AR_FTRIG,8,3                   ; @AR_FTRIG
	.comm	_MIN_TX_FIFO_THRESHOLD,8,3      ; @MIN_TX_FIFO_THRESHOLD
.subsections_via_symbols
