	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_xclk_calc_divider
_isp_xclk_calc_divider:                 ## @isp_xclk_calc_divider
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	cmpq	%rbx, %rsi
	jae	LBB0_1
## %bb.2:
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	movq	$1, (%r14)
	movl	$1, %esi
LBB0_4:
	movq	%rbx, %rdi
	callq	_DIV_ROUND_CLOSEST
	movq	_ISPTCTRL_CTRL_DIV_BYPASS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	-1(%rdx), %rcx
	cmpq	%rdx, %rax
	cmovbq	%rax, %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, (%r14)
	movq	_ISPTCTRL_CTRL_DIV_BYPASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, (%r14)
LBB0_8:
	movq	%rcx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPTCTRL_CTRL_DIV_BYPASS,8,3   ## @ISPTCTRL_CTRL_DIV_BYPASS
	.no_dead_strip	_isp_xclk_calc_divider
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_xclk_calc_divider
_isp_xclk_calc_divider:                 ; @isp_xclk_calc_divider
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x0]
	cmp	x1, x20
	b.hs	LBB0_4
; %bb.1:
	cbnz	x1, LBB0_3
; %bb.2:
	mov	w1, #1
	str	x1, [x19]
LBB0_3:
	mov	x0, x20
	bl	_DIV_ROUND_CLOSEST
Lloh0:
	adrp	x8, _ISPTCTRL_CTRL_DIV_BYPASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISPTCTRL_CTRL_DIV_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x8, #1
	cmp	x0, x8
	csel	x0, x0, x9, lo
	udiv	x8, x20, x0
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	str	x20, [x19]
Lloh3:
	adrp	x8, _ISPTCTRL_CTRL_DIV_BYPASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISPTCTRL_CTRL_DIV_BYPASS@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPTCTRL_CTRL_DIV_BYPASS,8,3   ; @ISPTCTRL_CTRL_DIV_BYPASS
	.no_dead_strip	_isp_xclk_calc_divider
.subsections_via_symbols
