	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_ch
_start_ch:                              ## @start_ch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_ICCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ICCR_SCP@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_iic_wr
	movl	(%r15), %esi
	movq	_ICCR_ICE@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iic_wr
	movq	_ICCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_iic_wr
	movq	_ICCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_iic_wr
LBB0_2:
	movq	%r14, 24(%rbx)
	movl	$-1, 8(%rbx)
	movq	$0, 32(%rbx)
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_i2c_get_dma_safe_msg_buf
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_sh_mobile_i2c_xfer_dma
LBB0_4:
	movq	_ICIC_DTEE@GOTPCREL(%rip), %rax
	movq	_ICIC_WAITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ICIC@GOTPCREL(%rip), %rax
	movq	_ICIC_ALE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ICIC_TACKE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iic_wr                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICCR,4,2                       ## @ICCR
	.comm	_ICCR_SCP,4,2                   ## @ICCR_SCP
	.comm	_ICCR_ICE,4,2                   ## @ICCR_ICE
	.comm	_ICCL,4,2                       ## @ICCL
	.comm	_ICCH,4,2                       ## @ICCH
	.comm	_ICIC,4,2                       ## @ICIC
	.comm	_ICIC_DTEE,4,2                  ## @ICIC_DTEE
	.comm	_ICIC_WAITE,4,2                 ## @ICIC_WAITE
	.comm	_ICIC_ALE,4,2                   ## @ICIC_ALE
	.comm	_ICIC_TACKE,4,2                 ## @ICIC_TACKE
	.no_dead_strip	_start_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_ch
_start_ch:                              ; @start_ch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _ICCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ICCR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _ICCR_SCP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ICCR_SCP@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_iic_wr
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _ICCR_ICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ICCR_ICE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_iic_wr
Lloh7:
	adrp	x8, _ICCL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICCL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldrb	w2, [x19]
	mov	x0, x19
	bl	_iic_wr
Lloh10:
	adrp	x8, _ICCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICCH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldrb	w2, [x19, #4]
	mov	x0, x19
	bl	_iic_wr
LBB0_2:
	mov	w8, #-1
	str	w8, [x19, #8]
	stp	x20, xzr, [x19, #24]
	mov	x0, x20
	mov	w1, #8
	bl	_i2c_get_dma_safe_msg_buf
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_sh_mobile_i2c_xfer_dma
LBB0_4:
Lloh13:
	adrp	x8, _ICIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICIC@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ICIC_DTEE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICIC_DTEE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _ICIC_WAITE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ICIC_WAITE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _ICIC_ALE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ICIC_ALE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _ICIC_TACKE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ICIC_TACKE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	ldr	w8, [x10]
	orr	w2, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iic_wr
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ICCR,4,2                       ; @ICCR
	.comm	_ICCR_SCP,4,2                   ; @ICCR_SCP
	.comm	_ICCR_ICE,4,2                   ; @ICCR_ICE
	.comm	_ICCL,4,2                       ; @ICCL
	.comm	_ICCH,4,2                       ; @ICCH
	.comm	_ICIC,4,2                       ; @ICIC
	.comm	_ICIC_DTEE,4,2                  ; @ICIC_DTEE
	.comm	_ICIC_WAITE,4,2                 ; @ICIC_WAITE
	.comm	_ICIC_ALE,4,2                   ; @ICIC_ALE
	.comm	_ICIC_TACKE,4,2                 ; @ICIC_TACKE
	.no_dead_strip	_start_ch
.subsections_via_symbols
