	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function adm8211_set_rate
LCPI0_0:
	.long	4                               ## 0x4
	.long	130                             ## 0x82
	.long	4                               ## 0x4
	.long	11                              ## 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_adm8211_set_rate:                      ## @adm8211_set_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_ADM8211_REV_BA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,130,4,11]
	movaps	%xmm0, -80(%rbp)
	movl	$22, -64(%rbp)
	jmp	LBB0_5
LBB0_1:
	movq	_adm8211_rates@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -80(%rbp)
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movslq	(%rdi,%rbx,4), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	orl	$128, %eax
	movl	%eax, -76(%rbp,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	movq	_ADM8211_SRAM_SUPP_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_adm8211_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_adm8211_write_sram_bytes
	movq	_PLCPHD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$16744447, %eax                 ## imm = 0xFF7FFF
	leal	1845526528(%rax), %esi
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_WRITE
	movq	_TXLMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$33582816, %esi                 ## imm = 0x2006EE0
	callq	_ADM8211_CSR_WRITE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM8211_REV_BA,8,3             ## @ADM8211_REV_BA
	.comm	_adm8211_rates,8,3              ## @adm8211_rates
	.comm	_ADM8211_SRAM_SUPP_RATE,4,2     ## @ADM8211_SRAM_SUPP_RATE
	.comm	_PLCPHD,4,2                     ## @PLCPHD
	.comm	_TXLMT,4,2                      ## @TXLMT
	.no_dead_strip	_adm8211_set_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function adm8211_set_rate
lCPI0_0:
	.long	4                               ; 0x4
	.long	130                             ; 0x82
	.long	4                               ; 0x4
	.long	11                              ; 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_adm8211_set_rate:                      ; @adm8211_set_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ADM8211_REV_BA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADM8211_REV_BA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x21, _adm8211_rates@GOTPAGE
Lloh7:
	ldr	x21, [x21, _adm8211_rates@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	mov	w8, #22
	str	w8, [sp, #16]
	b	LBB0_5
LBB0_2:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	str	w0, [sp]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	x8, sp
	orr	x22, x8, #0x4
	mov	w23, #26215
	movk	w23, #26214, lsl #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	lsl	x8, x20, #2
	ldrsw	x9, [x0, x8]
	mul	x9, x9, x23
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
	orr	w9, w9, #0x80
	add	x20, x20, #1
	str	w9, [x22, x8]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
Lloh10:
	adrp	x8, _ADM8211_SRAM_SUPP_RATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADM8211_SRAM_SUPP_RATE@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	w3, w0, #1
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_adm8211_write_sram_bytes
Lloh13:
	adrp	x19, _PLCPHD@GOTPAGE
Lloh14:
	ldr	x19, [x19, _PLCPHD@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_ADM8211_CSR_READ
	and	w8, w0, #0xffffff
	mov	w9, #32768
	movk	w9, #28160, lsl #16
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_ADM8211_CSR_WRITE
Lloh15:
	adrp	x8, _TXLMT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXLMT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #28384
	movk	w1, #512, lsl #16
	bl	_ADM8211_CSR_WRITE
	ldr	x8, [sp, #56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM8211_REV_BA,8,3             ; @ADM8211_REV_BA
	.comm	_adm8211_rates,8,3              ; @adm8211_rates
	.comm	_ADM8211_SRAM_SUPP_RATE,4,2     ; @ADM8211_SRAM_SUPP_RATE
	.comm	_PLCPHD,4,2                     ; @PLCPHD
	.comm	_TXLMT,4,2                      ; @TXLMT
	.no_dead_strip	_adm8211_set_rate
.subsections_via_symbols
