	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_set_ringparam
_ath5k_set_ringparam:                   ## @ath5k_set_ringparam
	.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	_ATH_RXBUF@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	_ATH5K_TXQ_LEN_MAX@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jl	LBB0_1
## %bb.4:
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$24, %ebx
	xorl	%r13d, %r13d
	movq	_AR5K_TX_QUEUE_ID_DATA_MIN@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	addq	$32, %rbx
	cmpq	%rax, %r13
	jae	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	$0, (%rdi,%rbx)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-24(%rdi,%rbx), %rsi
	cmpq	(%r14), %rsi
	jl	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_AR5K_TX_QUEUE_ID_DATA_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, -16(%rdi,%rbx)
	cmpq	%r15, -8(%rdi,%rbx)
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_stop_queue
	movq	(%r12), %rdi
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_RXBUF,8,3                  ## @ATH_RXBUF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH5K_TXQ_LEN_MAX,8,3          ## @ATH5K_TXQ_LEN_MAX
	.comm	_AR5K_TX_QUEUE_ID_DATA_MIN,8,3  ## @AR5K_TX_QUEUE_ID_DATA_MIN
	.comm	_AR5K_TX_QUEUE_ID_DATA_MAX,8,3  ## @AR5K_TX_QUEUE_ID_DATA_MAX
	.no_dead_strip	_ath5k_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_set_ringparam
_ath5k_set_ringparam:                   ; @ath5k_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _ATH_RXBUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_RXBUF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _ATH5K_TXQ_LEN_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH5K_TXQ_LEN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.lt	LBB0_10
; %bb.3:
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, #0
	mov	x23, #0
Lloh6:
	adrp	x24, _AR5K_TX_QUEUE_ID_DATA_MIN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AR5K_TX_QUEUE_ID_DATA_MIN@GOTPAGEOFF]
Lloh8:
	adrp	x25, _AR5K_TX_QUEUE_ID_DATA_MAX@GOTPAGE
Lloh9:
	ldr	x25, [x25, _AR5K_TX_QUEUE_ID_DATA_MAX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #32
	cmp	x23, x0
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	add	x8, x0, x22
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x0, x22]
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x1, x8
	ccmp	x1, x9, #0, ge
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x0, x22
	str	x19, [x8, #8]
	ldr	x8, [x8, #16]
	cmp	x8, x19
	b.lt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_ieee80211_stop_queue
	ldr	x0, [x21]
	b	LBB0_5
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_RXBUF,8,3                  ; @ATH_RXBUF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH5K_TXQ_LEN_MAX,8,3          ; @ATH5K_TXQ_LEN_MAX
	.comm	_AR5K_TX_QUEUE_ID_DATA_MIN,8,3  ; @AR5K_TX_QUEUE_ID_DATA_MIN
	.comm	_AR5K_TX_QUEUE_ID_DATA_MAX,8,3  ; @AR5K_TX_QUEUE_ID_DATA_MAX
	.no_dead_strip	_ath5k_set_ringparam
.subsections_via_symbols
