	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_slew_rate_config
_ad5758_slew_rate_config:               ## @ad5758_slew_rate_config
	.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
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_S64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ad5758_sr_clk@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_AD5758_FULL_SCALE_MICRO@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%r13, %rdi
	callq	_do_div
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_do_div
	movq	_ad5758_sr_step@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_ad5758_find_closest_match
	movq	_AD5758_FULL_SCALE_MICRO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_ad5758_sr_step@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %r13
	movq	(%rcx,%r13,8), %rsi
	movq	%rbx, %rdi
	callq	_do_div
	movq	_ad5758_sr_clk@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%rbx, %rdi
	callq	_do_div
	movq	(%r12), %rax
	subq	%rbx, %rax
	movq	_ad5758_sr_clk@GOTPCREL(%rip), %r12
	movq	%rax, %rcx
	negq	%rcx
	cmovsq	%rax, %rcx
	cmpq	%r14, %rcx
	cmovlq	%rcx, %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovll	%r13d, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmovll	%r15d, %ebx
	incq	%r15
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad5758_slew_rate_set           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S64_MAX,8,3                    ## @S64_MAX
	.comm	_ad5758_sr_clk,8,3              ## @ad5758_sr_clk
	.comm	_AD5758_FULL_SCALE_MICRO,8,3    ## @AD5758_FULL_SCALE_MICRO
	.comm	_ad5758_sr_step,8,3             ## @ad5758_sr_step
	.no_dead_strip	_ad5758_slew_rate_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_slew_rate_config
_ad5758_slew_rate_config:               ; @ad5758_slew_rate_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x0
Lloh0:
	adrp	x8, _S64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x19, _ad5758_sr_clk@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ad5758_sr_clk@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	mov	w21, #0
	mov	w20, #0
Lloh5:
	adrp	x28, _ad5758_sr_step@GOTPAGE
Lloh6:
	ldr	x28, [x28, _ad5758_sr_step@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh7:
	adrp	x8, _AD5758_FULL_SCALE_MICRO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD5758_FULL_SCALE_MICRO@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	ldr	x8, [x19]
	lsl	x27, x26, #3
	ldr	x1, [x8, x27]
	mov	x0, x22
	bl	_do_div
	ldr	x1, [x25]
	mov	x0, x22
	bl	_do_div
	ldr	x23, [x28]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_ad5758_find_closest_match
	mov	x22, x0
Lloh10:
	adrp	x8, _AD5758_FULL_SCALE_MICRO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AD5758_FULL_SCALE_MICRO@GOTPAGEOFF]
Lloh12:
	ldr	x23, [x8]
	ldr	x8, [x28]
	ldr	x1, [x8, w0, sxtw #3]
	mov	x0, x23
	bl	_do_div
	ldr	x8, [x19]
	ldr	x1, [x8, x27]
	mov	x0, x23
	bl	_do_div
	ldr	x8, [x25]
	subs	x8, x8, x23
	cneg	x8, x8, mi
	cmp	x8, x24
	csel	x24, x8, x24, lt
	csel	w20, w22, w20, lt
	csel	w21, w26, w21, lt
	add	x26, x26, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
	mov	w21, #0
LBB0_4:
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ad5758_slew_rate_set
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_S64_MAX,8,3                    ; @S64_MAX
	.comm	_ad5758_sr_clk,8,3              ; @ad5758_sr_clk
	.comm	_AD5758_FULL_SCALE_MICRO,8,3    ; @AD5758_FULL_SCALE_MICRO
	.comm	_ad5758_sr_step,8,3             ; @ad5758_sr_step
	.no_dead_strip	_ad5758_slew_rate_config
.subsections_via_symbols
