	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_to_driver_rix
_ath5k_hw_to_driver_rix:                ## @ath5k_hw_to_driver_rix
	.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
	testl	%esi, %esi
	sets	%al
	movq	_AR5K_MAX_RATES@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	movq	%rdi, %r14
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_WARN
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	%r14d, %edi
	shrl	$31, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_WARN
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovel	%r14d, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_MAX_RATES,4,2             ## @AR5K_MAX_RATES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw_rix out of bounds: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid hw_rix: %x\n"

	.no_dead_strip	_ath5k_hw_to_driver_rix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_to_driver_rix
_ath5k_hw_to_driver_rix:                ; @ath5k_hw_to_driver_rix
	.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	x19, x1
	mov	x20, x0
	cmp	w1, #0
Lloh0:
	adrp	x8, _AR5K_MAX_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_MAX_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, ge
	cset	w0, le
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WARN
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldp	x8, x9, [x20]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w20, [x8, w19, sxtw #2]
	lsr	w0, w20, #31
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_WARN
	cmp	x0, #0
	csel	w0, w20, wzr, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_MAX_RATES,4,2             ; @AR5K_MAX_RATES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw_rix out of bounds: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid hw_rix: %x\n"

	.no_dead_strip	_ath5k_hw_to_driver_rix
.subsections_via_symbols
