	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function orinoco_hw_get_bitratelist
LCPI0_0:
	.space	16,224
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_orinoco_hw_get_bitratelist
	.p2align	4, 0x90
_orinoco_hw_get_bitratelist:            ## @orinoco_hw_get_bitratelist
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	-56(%rbp), %rsi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_2:
	movq	(%r13), %rax
	movq	_USER_BAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HERMES_RID_SUPPORTEDDATARATES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movl	%eax, %ebx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_orinoco_unlock
	testl	%ebx, %ebx
	jne	LBB0_21
## %bb.3:
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r15)
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_min
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_21
## %bb.4:
	movl	%eax, %ecx
	cmpl	$8, %eax
	jae	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_6:
	cmpl	$32, %eax
	jae	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_8:
	movl	%ecx, %eax
	andl	$-32, %eax
	leaq	-32(%rax), %rdx
	movq	%rdx, %rsi
	shrq	$5, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-44(%rbp,%rdx), %xmm1
	movdqu	-28(%rbp,%rdx), %xmm2
	psllw	$5, %xmm1
	pand	%xmm0, %xmm1
	psllw	$5, %xmm2
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%r12,%rdx)
	movdqu	%xmm2, 16(%r12,%rdx)
	movdqu	-12(%rbp,%rdx), %xmm1
	movdqu	4(%rbp,%rdx), %xmm2
	psllw	$5, %xmm1
	pand	%xmm0, %xmm1
	psllw	$5, %xmm2
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 32(%r12,%rdx)
	movdqu	%xmm2, 48(%r12,%rdx)
	addq	$64, %rdx
	addq	$-2, %rdi
	jne	LBB0_11
	jmp	LBB0_12
LBB0_9:
	xorl	%edx, %edx
LBB0_12:
	testb	$1, %sil
	je	LBB0_14
## %bb.13:
	movdqu	-44(%rbp,%rdx), %xmm0
	movdqu	-28(%rbp,%rdx), %xmm1
	psllw	$5, %xmm0
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224]
	pand	%xmm2, %xmm0
	psllw	$5, %xmm1
	pand	%xmm2, %xmm1
	movdqu	%xmm0, (%r12,%rdx)
	movdqu	%xmm1, 16(%r12,%rdx)
LBB0_14:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	je	LBB0_21
## %bb.15:
	testb	$24, %cl
	je	LBB0_19
LBB0_16:
	movq	%rax, %rdx
	movl	%ecx, %eax
	andl	$-8, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224]
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-44(%rbp,%rdx), %xmm1           ## xmm1 = mem[0],zero
	psllw	$5, %xmm1
	pand	%xmm0, %xmm1
	movq	%xmm1, (%r12,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
## %bb.18:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	je	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-44(%rbp,%rax), %edx
	shlb	$5, %dl
	movb	%dl, (%r12,%rax)
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_19
## %bb.20:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_USER_BAP,4,2                   ## @USER_BAP
	.comm	_HERMES_RID_SUPPORTEDDATARATES,4,2 ## @HERMES_RID_SUPPORTEDDATARATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_get_bitratelist     ; -- Begin function orinoco_hw_get_bitratelist
	.p2align	2
_orinoco_hw_get_bitratelist:            ; @orinoco_hw_get_bitratelist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x1, sp
	bl	_orinoco_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_2:
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _USER_BAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USER_BAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _HERMES_RID_SUPPORTEDDATARATES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HERMES_RID_SUPPORTEDDATARATES@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	add	x5, sp, #8
	mov	x0, x22
	mov	w3, #8
	mov	x4, #0
	blr	x8
	mov	x23, x0
	mov	x1, sp
	mov	x0, x22
	bl	_orinoco_unlock
	cbnz	w23, LBB0_18
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	str	w0, [x21]
	mov	x1, x20
	bl	_min
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.4:
	mov	w8, w0
	cmp	w0, #8
	b.hs	LBB0_6
; %bb.5:
	mov	x9, #0
	b	LBB0_15
LBB0_6:
	cmp	w0, #64
	b.hs	LBB0_8
; %bb.7:
	mov	x9, #0
	b	LBB0_12
LBB0_8:
	and	x9, x8, #0xffffffc0
	add	x10, x19, #32
	add	x11, sp, #8
	add	x11, x11, #36
	mov	x12, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	shl.16b	v0, v0, #5
	shl.16b	v1, v1, #5
	shl.16b	v2, v2, #5
	shl.16b	v3, v3, #5
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #64
	b.ne	LBB0_9
; %bb.10:
	cmp	x9, x8
	b.eq	LBB0_17
; %bb.11:
	tst	x8, #0x38
	b.eq	LBB0_15
LBB0_12:
	mov	x12, x9
	and	x9, x8, #0xfffffff8
	add	x10, sp, #8
	add	x10, x12, x10
	add	x10, x10, #4
	add	x11, x19, x12
	sub	x12, x12, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x10], #8
	shl.8b	v0, v0, #5
	str	d0, [x11], #8
	adds	x12, x12, #8
	b.ne	LBB0_13
; %bb.14:
	cmp	x9, x8
	b.eq	LBB0_17
LBB0_15:
	add	x10, x19, x9
	add	x11, sp, #8
	add	x11, x9, x11
	add	x11, x11, #4
	sub	x8, x8, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	lsl	w9, w9, #5
	strb	w9, [x10], #1
	subs	x8, x8, #1
	b.ne	LBB0_16
LBB0_17:
	mov	w23, #0
LBB0_18:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_USER_BAP,4,2                   ; @USER_BAP
	.comm	_HERMES_RID_SUPPORTEDDATARATES,4,2 ; @HERMES_RID_SUPPORTEDDATARATES
.subsections_via_symbols
