	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clk_bcm2835_i2c_calc_divider
_clk_bcm2835_i2c_calc_divider:          ## @clk_bcm2835_i2c_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
	movq	%rdi, %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_DIV_ROUND_UP
	movl	%eax, %ecx
	andl	$1, %ecx
	addl	%eax, %ecx
	movq	_BCM2835_I2C_CDIV_MIN@GOTPCREL(%rip), %rdx
	movq	_BCM2835_I2C_CDIV_MAX@GOTPCREL(%rip), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	subl	(%rsi), %edi
	cmpl	(%rax), %ecx
	movl	%ecx, %eax
	cmovgl	%edi, %eax
	cmpl	(%rdx), %ecx
	cmovll	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_I2C_CDIV_MIN,4,2       ## @BCM2835_I2C_CDIV_MIN
	.comm	_BCM2835_I2C_CDIV_MAX,4,2       ## @BCM2835_I2C_CDIV_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_clk_bcm2835_i2c_calc_divider
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clk_bcm2835_i2c_calc_divider
_clk_bcm2835_i2c_calc_divider:          ; @clk_bcm2835_i2c_calc_divider
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	x0, x1
	mov	x1, x8
	bl	_DIV_ROUND_UP
	and	w8, w0, #0x1
Lloh0:
	adrp	x9, _BCM2835_I2C_CDIV_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCM2835_I2C_CDIV_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BCM2835_I2C_CDIV_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BCM2835_I2C_CDIV_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w8, w0
	cmp	w8, w10
	ccmp	w8, w9, #8, le
Lloh6:
	adrp	x9, _EINVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	csneg	w0, w8, w9, ge
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_I2C_CDIV_MIN,4,2       ; @BCM2835_I2C_CDIV_MIN
	.comm	_BCM2835_I2C_CDIV_MAX,4,2       ; @BCM2835_I2C_CDIV_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_clk_bcm2835_i2c_calc_divider
.subsections_via_symbols
