	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_i2c_sw_engine_set_speed    ## -- Begin function dce_i2c_sw_engine_set_speed
	.p2align	4, 0x90
_dce_i2c_sw_engine_set_speed:           ## @dce_i2c_sw_engine_set_speed
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_ASSERT
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_DCE_I2C_DEFAULT_I2C_SW_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movl	%ebx, (%r14)
	movl	$1000, %eax                     ## imm = 0x3E8
	xorl	%edx, %edx
	idivl	%ebx
	cmpl	$13, %eax
	movl	$12, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCE_I2C_DEFAULT_I2C_SW_SPEED,4,2 ## @DCE_I2C_DEFAULT_I2C_SW_SPEED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_i2c_sw_engine_set_speed    ; -- Begin function dce_i2c_sw_engine_set_speed
	.p2align	2
_dce_i2c_sw_engine_set_speed:           ; @dce_i2c_sw_engine_set_speed
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ASSERT
Lloh0:
	adrp	x8, _DCE_I2C_DEFAULT_I2C_SW_SPEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCE_I2C_DEFAULT_I2C_SW_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w8, w8, w19, eq
	mov	w9, #1000
	sdiv	w9, w9, w8
	mov	w10, #12
	cmp	w9, #12
	csel	w9, w9, w10, gt
	stp	w8, w9, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCE_I2C_DEFAULT_I2C_SW_SPEED,4,2 ; @DCE_I2C_DEFAULT_I2C_SW_SPEED
.subsections_via_symbols
