	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_lower_upper_index ## -- Begin function ath9k_hw_get_lower_upper_index
	.p2align	4, 0x90
_ath9k_hw_get_lower_upper_index:        ## @ath9k_hw_get_lower_upper_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rsi), %r9
	cmpq	%rdi, %r9
	jge	LBB0_8
## %bb.1:
	movslq	%edx, %rax
	decl	%edx
	cmpq	%rdi, -8(%rsi,%rax,8)
	jle	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovlel	%eax, %edx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, %rdx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, %r9
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi,%r10,8), %r9
	incq	%r10
	cmpq	%rdi, %r9
	jle	LBB0_3
## %bb.6:
	leal	-1(%r10), %edx
	movl	%edx, (%rcx)
	movl	%r10d, (%r8)
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	movl	$0, (%r8)
	movl	$0, (%rcx)
	jmp	LBB0_9
LBB0_10:
	movl	%edx, (%r8)
	movl	%edx, (%rcx)
	jmp	LBB0_9
LBB0_11:
	movl	%r10d, (%r8)
	movl	%r10d, (%rcx)
LBB0_9:
	movl	$1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_get_lower_upper_index ; -- Begin function ath9k_hw_get_lower_upper_index
	.p2align	2
_ath9k_hw_get_lower_upper_index:        ; @ath9k_hw_get_lower_upper_index
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cmp	x8, x0
	b.ge	LBB0_7
; %bb.1:
	sub	w9, w2, #1
	ldr	x10, [x1, w9, sxtw #3]
	cmp	x10, x0
	b.le	LBB0_8
; %bb.2:
	cmp	w9, #0
	csel	w10, w9, wzr, gt
	add	x11, x1, #8
	mov	w9, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x0
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x11], #8
	add	w9, w9, #1
	sub	x10, x10, #1
	cmp	x8, x0
	b.le	LBB0_3
; %bb.6:
	mov	w0, #0
	add	w8, w9, #1
	str	w9, [x3]
	str	w8, [x4]
	ret
LBB0_7:
	str	wzr, [x4]
	str	wzr, [x3]
	mov	w0, #1
	ret
LBB0_8:
	str	w9, [x4]
	str	w9, [x3]
	mov	w0, #1
	ret
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
	add	w8, w9, #1
	str	w8, [x4]
	str	w8, [x3]
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
