	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_engine
_release_engine:                        ## @release_engine
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	callq	_set_speed
	movl	$0, -12(%rbp)
	movq	_DC_I2C_SW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rdx
	movl	%edi, %esi
	callq	_REG_GET
	cmpl	$1, -12(%rbp)
	movq	_DC_I2C_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jne	LBB0_2
## %bb.1:
	movq	_DC_I2C_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DC_I2C_SW_STATUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_2
	cmpl	$0, (%rbx)
	jne	LBB0_5
	jmp	LBB0_4
LBB0_2:
	movq	_DC_I2C_SW_STATUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	cmpl	$0, (%rbx)
	jne	LBB0_5
LBB0_4:
	movq	_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DC_I2C_DDC1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FN
	movl	%ebx, %edi
	movl	$1, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_REG_UPDATE_N
LBB0_5:
	movq	_DC_I2C_ARBITRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_I2C_SW_DONE_USING_I2C_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DC_I2C_SW_USE_I2C_REG_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_I2C_SW_STATUS,4,2           ## @DC_I2C_SW_STATUS
	.comm	_DC_I2C_CONTROL,4,2             ## @DC_I2C_CONTROL
	.comm	_DC_I2C_SOFT_RESET,4,2          ## @DC_I2C_SOFT_RESET
	.comm	_DC_I2C_SW_STATUS_RESET,4,2     ## @DC_I2C_SW_STATUS_RESET
	.comm	_SETUP,4,2                      ## @SETUP
	.comm	_DC_I2C_DDC1_ENABLE,4,2         ## @DC_I2C_DDC1_ENABLE
	.comm	_DC_I2C_ARBITRATION,4,2         ## @DC_I2C_ARBITRATION
	.comm	_DC_I2C_SW_DONE_USING_I2C_REG,4,2 ## @DC_I2C_SW_DONE_USING_I2C_REG
	.comm	_DC_I2C_SW_USE_I2C_REG_REQ,4,2  ## @DC_I2C_SW_USE_I2C_REG_REQ
	.no_dead_strip	_release_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_engine
_release_engine:                        ; @release_engine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x0, #4]
	bl	_set_speed
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _DC_I2C_SW_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_I2C_SW_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x0
	bl	_REG_GET
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _DC_I2C_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DC_I2C_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _DC_I2C_SOFT_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_I2C_SOFT_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DC_I2C_SW_STATUS_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_I2C_SW_STATUS_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w2, #1
	mov	w4, #1
	bl	_REG_UPDATE_2
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _DC_I2C_SW_STATUS_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DC_I2C_SW_STATUS_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _SETUP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SETUP@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _DC_I2C_DDC1_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DC_I2C_DDC1_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FN
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	bl	_REG_UPDATE_N
LBB0_4:
Lloh21:
	adrp	x8, _DC_I2C_ARBITRATION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DC_I2C_ARBITRATION@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _DC_I2C_SW_DONE_USING_I2C_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DC_I2C_SW_DONE_USING_I2C_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _DC_I2C_SW_USE_I2C_REG_REQ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DC_I2C_SW_USE_I2C_REG_REQ@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	w2, #1
	mov	w4, #0
	bl	_REG_UPDATE_2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_I2C_SW_STATUS,4,2           ; @DC_I2C_SW_STATUS
	.comm	_DC_I2C_CONTROL,4,2             ; @DC_I2C_CONTROL
	.comm	_DC_I2C_SOFT_RESET,4,2          ; @DC_I2C_SOFT_RESET
	.comm	_DC_I2C_SW_STATUS_RESET,4,2     ; @DC_I2C_SW_STATUS_RESET
	.comm	_SETUP,4,2                      ; @SETUP
	.comm	_DC_I2C_DDC1_ENABLE,4,2         ; @DC_I2C_DDC1_ENABLE
	.comm	_DC_I2C_ARBITRATION,4,2         ; @DC_I2C_ARBITRATION
	.comm	_DC_I2C_SW_DONE_USING_I2C_REG,4,2 ; @DC_I2C_SW_DONE_USING_I2C_REG
	.comm	_DC_I2C_SW_USE_I2C_REG_REQ,4,2  ; @DC_I2C_SW_USE_I2C_REG_REQ
	.no_dead_strip	_release_engine
.subsections_via_symbols
