	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pinctrl_get_debounce_div
_sunxi_pinctrl_get_debounce_div:        ## @sunxi_pinctrl_get_debounce_div
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	callq	_clk_get_rate
	movq	%rax, %r12
	movl	%r15d, %edi
	subl	%r12d, %edi
	callq	_abs
	movq	%rax, %r13
	movq	%r12, %rax
	shrq	%rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	cmpl	%ebx, %r13d
	seta	%r14b
	cmovbl	%r13d, %ebx
	movq	%r12, %rax
	shrq	$2, %rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$2, %r13d
	cmovbel	%r14d, %r13d
	cmovael	%eax, %ebx
	movq	%r12, %rax
	shrq	$3, %rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$3, %r14d
	cmovbel	%r13d, %r14d
	cmovael	%eax, %ebx
	movq	%r12, %rax
	shrq	$4, %rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$4, %r13d
	cmovbel	%r14d, %r13d
	cmovael	%eax, %ebx
	movq	%r12, %rax
	shrq	$5, %rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$5, %r14d
	cmovbel	%r13d, %r14d
	cmovael	%eax, %ebx
	movq	%r12, %rax
	shrq	$6, %rax
	movl	%r15d, %edi
	subl	%eax, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$6, %r13d
	cmovbel	%r14d, %r13d
	cmovael	%eax, %ebx
	shrq	$7, %r12
	subl	%r12d, %r15d
	movl	%r15d, %edi
	callq	_abs
	cmpl	%eax, %ebx
	movl	$7, %ecx
	cmovbel	%r13d, %ecx
	cmovael	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sunxi_pinctrl_get_debounce_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pinctrl_get_debounce_div
_sunxi_pinctrl_get_debounce_div:        ; @sunxi_pinctrl_get_debounce_div
	.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	x19, x2
	mov	x20, x1
	bl	_clk_get_rate
	mov	x21, x0
	sub	w0, w20, w21
	bl	_abs
	mov	x22, x0
	lsr	x8, x21, #1
	sub	w0, w20, w8
	bl	_abs
	cmp	w22, w0
	csel	w22, w22, w0, lo
	cset	w23, hi
	lsr	x8, x21, #2
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #2
	cmp	w22, w0
	csel	w23, w8, w23, hi
	csel	w22, w22, w0, lo
	lsr	x8, x21, #3
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #3
	cmp	w22, w0
	csel	w23, w8, w23, hi
	csel	w22, w22, w0, lo
	lsr	x8, x21, #4
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #4
	cmp	w22, w0
	csel	w23, w8, w23, hi
	csel	w22, w22, w0, lo
	lsr	x8, x21, #5
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #5
	cmp	w22, w0
	csel	w23, w8, w23, hi
	csel	w22, w22, w0, lo
	lsr	x8, x21, #6
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #6
	cmp	w22, w0
	csel	w23, w8, w23, hi
	csel	w22, w22, w0, lo
	lsr	x8, x21, #7
	sub	w0, w20, w8
	bl	_abs
	mov	w8, #7
	cmp	w22, w0
	csel	w8, w8, w23, hi
	csel	w9, w22, w0, lo
	str	w9, [x19]
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sunxi_pinctrl_get_debounce_div
.subsections_via_symbols
