	.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, %r15
	cmpq	$0, (%rsi)
	je	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	callq	_ICCR
	movl	%eax, %edi
	callq	_ioread8
	movq	_ICCR_ICE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ICCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movq	%r15, %rdi
	callq	_ICCR
	movl	%eax, %edi
	callq	_ioread8
	movl	%eax, %ebx
	orl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_ICCR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movl	(%r15), %ebx
	movq	%r15, %rdi
	callq	_ICCL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movl	4(%r15), %ebx
	movq	%r15, %rdi
	callq	_ICCH
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movq	%r14, 24(%r15)
	movl	$-1, 8(%r15)
	movq	$0, 16(%r15)
	movq	_ICIC_WAITE@GOTPCREL(%rip), %rax
	movq	_ICIC_ALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_ICIC_TACKE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ICIC_DTEE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ICIC
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite8
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_3
## %bb.2:
	movl	32(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported zero length i2c read\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ICCR_ICE,4,2                   ## @ICCR_ICE
	.comm	_ICIC_WAITE,4,2                 ## @ICIC_WAITE
	.comm	_ICIC_ALE,4,2                   ## @ICIC_ALE
	.comm	_ICIC_TACKE,4,2                 ## @ICIC_TACKE
	.comm	_ICIC_DTEE,4,2                  ## @ICIC_DTEE
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_ICCR
	bl	_ioread8
Lloh0:
	adrp	x22, _ICCR_ICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ICCR_ICE@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w21, w0, w8
	mov	x0, x19
	bl	_ICCR
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	mov	x0, x19
	bl	_ICCR
	bl	_ioread8
	ldr	w8, [x22]
	orr	w21, w8, w0
	mov	x0, x19
	bl	_ICCR
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	ldr	w21, [x19]
	mov	x0, x19
	bl	_ICCL
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	_ICCH
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	mov	w8, #-1
	str	w8, [x19, #8]
	stp	xzr, x20, [x19, #16]
Lloh2:
	adrp	x8, _ICIC_WAITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICIC_WAITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ICIC_ALE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICIC_ALE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _ICIC_TACKE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICIC_TACKE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _ICIC_DTEE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ICIC_DTEE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_ICIC
	mov	x1, x0
	mov	x0, x20
	bl	_iowrite8
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20, #8]
Lloh14:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	ldr	w0, [x19, #32]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported zero length i2c read\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ICCR_ICE,4,2                   ; @ICCR_ICE
	.comm	_ICIC_WAITE,4,2                 ; @ICIC_WAITE
	.comm	_ICIC_ALE,4,2                   ; @ICIC_ALE
	.comm	_ICIC_TACKE,4,2                 ; @ICIC_TACKE
	.comm	_ICIC_DTEE,4,2                  ; @ICIC_DTEE
	.no_dead_strip	_start_ch
.subsections_via_symbols
