	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_speed
_set_speed:                             ## @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	%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
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DC_I2C_DDC1_SPEED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DC_I2C_DDC1_PRESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	cltd
	idivl	%r14d
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_DC_I2C_DDC1_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FN
	movl	%eax, %r13d
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	movq	_DC_I2C_DDC1_START_STOP_TIMING_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FN
	movl	%eax, %r10d
	movl	%ebx, %ecx
	xorl	%ebx, %ebx
	cmpl	$51, %r14d
	setge	%bl
	incl	%ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$3, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	$2, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_REG_UPDATE_N
	addq	$24, %rsp
	jmp	LBB0_5
LBB0_4:
	addq	$8, %rsp
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$2, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	$2, %r9d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE_N                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED,4,2                      ## @SPEED
	.comm	_DC_I2C_DDC1_SPEED,4,2          ## @DC_I2C_DDC1_SPEED
	.comm	_DC_I2C_DDC1_PRESCALE,4,2       ## @DC_I2C_DDC1_PRESCALE
	.comm	_DC_I2C_DDC1_THRESHOLD,4,2      ## @DC_I2C_DDC1_THRESHOLD
	.comm	_DC_I2C_DDC1_START_STOP_TIMING_CNTL,4,2 ## @DC_I2C_DDC1_START_STOP_TIMING_CNTL
	.no_dead_strip	_set_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_speed
_set_speed:                             ; @set_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _SPEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x24, _DC_I2C_DDC1_SPEED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DC_I2C_DDC1_SPEED@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x8, _DC_I2C_DDC1_PRESCALE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DC_I2C_DDC1_PRESCALE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_FN
	mov	x21, x0
	ldr	w8, [x22]
	ldr	w0, [x24]
Lloh8:
	adrp	x9, _DC_I2C_DDC1_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DC_I2C_DDC1_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	sdiv	w22, w8, w20
	bl	_FN
	mov	x23, x0
	cbz	x25, LBB0_4
; %bb.2:
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _DC_I2C_DDC1_START_STOP_TIMING_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DC_I2C_DDC1_START_STOP_TIMING_CNTL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_FN
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w20, #50
	mov	w8, #1
	cinc	x8, x8, gt
	stp	x0, x8, [sp]
	mov	x0, x19
	mov	w1, #3
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	w5, #2
	bl	_REG_UPDATE_N
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	w5, #2
	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
	add	sp, sp, #96
	b	_REG_UPDATE_N
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED,4,2                      ; @SPEED
	.comm	_DC_I2C_DDC1_SPEED,4,2          ; @DC_I2C_DDC1_SPEED
	.comm	_DC_I2C_DDC1_PRESCALE,4,2       ; @DC_I2C_DDC1_PRESCALE
	.comm	_DC_I2C_DDC1_THRESHOLD,4,2      ; @DC_I2C_DDC1_THRESHOLD
	.comm	_DC_I2C_DDC1_START_STOP_TIMING_CNTL,4,2 ; @DC_I2C_DDC1_START_STOP_TIMING_CNTL
	.no_dead_strip	_set_speed
.subsections_via_symbols
