	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_get_adjacent_rate
_rs_get_adjacent_rate:                  ## @rs_get_adjacent_rate
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_IWL_RATE_INVALID@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movl	%ecx, %edi
	callq	_is_type_a_band
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%r14d, %edx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.6:
	leal	-1(%rbx), %edi
	callq	_BIT
	movl	%ebx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	sarl	%eax
	decl	%edx
	jg	LBB0_7
## %bb.9:
	movl	%r14d, %edx
	jmp	LBB0_11
LBB0_1:
	movl	%r12d, %edi
	callq	_is_type_legacy
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	(%r13), %r14d
	movq	_iwl_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %edx
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edx, %rcx
	movl	(%rax,%rcx,8), %edx
	cmpl	%r14d, %edx
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	btl	%edx, %r15d
	jae	LBB0_3
	jmp	LBB0_18
LBB0_10:
	decl	%edx
LBB0_11:
	incl	%ebx
	movq	_IWL_RATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_22
## %bb.12:
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %esi
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	addl	%esi, %esi
	cmpl	%ebx, %eax
	jne	LBB0_13
	jmp	LBB0_22
LBB0_4:
	movl	%r14d, %edx
	jmp	LBB0_18
LBB0_16:
	movl	%r14d, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %ebx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%ebx, %rcx
	movl	4(%rax,%rcx,8), %ebx
	cmpl	%r14d, %ebx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	btl	%ebx, %r15d
	jae	LBB0_18
LBB0_21:
	movl	%ebx, %r14d
LBB0_22:
	shll	$8, %r14d
	orl	%edx, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RATE_INVALID,4,2           ## @IWL_RATE_INVALID
	.comm	_IWL_RATE_COUNT,4,2             ## @IWL_RATE_COUNT
	.comm	_iwl_rates,8,3                  ## @iwl_rates
	.no_dead_strip	_rs_get_adjacent_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_get_adjacent_rate
_rs_get_adjacent_rate:                  ; @rs_get_adjacent_rate
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _IWL_RATE_INVALID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IWL_RATE_INVALID@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x3
	bl	_is_type_a_band
	cbz	x0, LBB0_6
LBB0_1:
	mov	x8, x22
	subs	w0, w20, #1
	b.lt	LBB0_12
; %bb.2:
	bl	_BIT
	mov	x8, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tst	w0, w19
	b.ne	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	w0, w0, #1
	sub	w8, w8, #1
	cmp	w8, #0
	b.gt	LBB0_3
; %bb.5:
	mov	x8, x22
	b	LBB0_12
LBB0_6:
	mov	x0, x21
	bl	_is_type_legacy
	cbz	w0, LBB0_1
; %bb.7:
	ldr	w22, [x23]
Lloh2:
	adrp	x8, _iwl_rates@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iwl_rates@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	mov	x8, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w22
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sbfiz	x8, x8, #3, #32
	ldr	w8, [x9, x8]
	cmp	w8, w22
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	lsr	w10, w19, w8
	tbz	w10, #0, LBB0_8
	b	LBB0_19
LBB0_11:
	sub	w8, w8, #1
LBB0_12:
	add	w9, w20, #1
Lloh5:
	adrp	x10, _IWL_RATE_COUNT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IWL_RATE_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_23
; %bb.13:
	mov	w11, #1
	lsl	w11, w11, w9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	tst	w11, w19
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w9, w9, #1
	lsl	w11, w11, #1
	cmp	w10, w9
	b.ne	LBB0_14
	b	LBB0_23
LBB0_16:
	mov	x22, x9
	b	LBB0_23
LBB0_17:
	mov	x8, x22
	b	LBB0_19
LBB0_18:
	mov	x8, x22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, w22
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x10, x9, w20, sxtw #3
	ldr	w20, [x10, #4]
	cmp	w20, w22
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	lsr	w10, w19, w20
	tbz	w10, #0, LBB0_19
; %bb.22:
	mov	x22, x20
LBB0_23:
	orr	w0, w8, w22, lsl #8
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RATE_INVALID,4,2           ; @IWL_RATE_INVALID
	.comm	_IWL_RATE_COUNT,4,2             ; @IWL_RATE_COUNT
	.comm	_iwl_rates,8,3                  ; @iwl_rates
	.no_dead_strip	_rs_get_adjacent_rate
.subsections_via_symbols
