	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_i2c_irq
_dc_i2c_irq:                            ## @dc_i2c_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_dc_i2c_cmd_status
	movl	%eax, %ebx
	movq	_II_INTFLAG_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r15), %rsi
	movl	$1, %edi
	callq	_writeb_relaxed
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_II_CMD_STATUS_ACK_BAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	_II_CMD_STATUS_ABORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	16(%r15), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 28(%r15)
LBB0_16:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_complete
LBB0_17:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_16
LBB0_6:
	movq	16(%r15), %rdi
	callq	_dc_i2c_addr_cmd
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dc_i2c_write_byte
	movl	$132, (%r15)
	jmp	LBB0_17
LBB0_12:
	movl	24(%r15), %eax
	movq	16(%r15), %rcx
	cmpl	4(%rcx), %eax
	jge	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_dc_i2c_read_buf
	jmp	LBB0_17
LBB0_7:
	movq	16(%r15), %rax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_dc_i2c_next_read
	movl	$131, (%r15)
	jmp	LBB0_17
LBB0_9:
	movl	$128, (%r15)
LBB0_10:
	movl	24(%r15), %ecx
	cmpl	4(%rax), %ecx
	jge	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_dc_i2c_write_buf
	jmp	LBB0_17
LBB0_14:
	movq	%r15, %rdi
	callq	_dc_i2c_stop
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_II_INTFLAG_CLEAR,8,3           ## @II_INTFLAG_CLEAR
	.comm	_II_CMD_STATUS_ACK_BAD,4,2      ## @II_CMD_STATUS_ACK_BAD
	.comm	_II_CMD_STATUS_ABORT,4,2        ## @II_CMD_STATUS_ABORT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_STATE_IDLE,4,2                 ## @STATE_IDLE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dc_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc_i2c_irq
_dc_i2c_irq:                            ; @dc_i2c_irq
	.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	x0, x1
	bl	_dc_i2c_cmd_status
	mov	x21, x0
	ldr	x8, [x20, #32]
Lloh0:
	adrp	x9, _II_INTFLAG_CLEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _II_INTFLAG_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writeb_relaxed
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _II_CMD_STATUS_ACK_BAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _II_CMD_STATUS_ACK_BAD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _II_CMD_STATUS_ABORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _II_CMD_STATUS_ABORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #28]
	add	x0, x20, #8
LBB0_2:
	bl	_complete
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
LBB0_4:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.5:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x8, [x20, #16]
	b	LBB0_14
LBB0_7:
Lloh17:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20], #8
	mov	x0, x20
	b	LBB0_2
LBB0_8:
	ldr	x0, [x20, #16]
	bl	_dc_i2c_addr_cmd
	mov	x1, x0
	mov	x0, x20
	bl	_dc_i2c_write_byte
	mov	w8, #132
	str	w8, [x20]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x20, #24]
	ldr	x9, [x20, #16]
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.10:
	mov	x0, x20
	bl	_dc_i2c_read_buf
	b	LBB0_3
LBB0_11:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
Lloh20:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh21:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_dc_i2c_next_read
	mov	w8, #131
	str	w8, [x20]
	b	LBB0_3
LBB0_13:
	mov	w9, #128
	str	w9, [x20]
LBB0_14:
	ldr	w9, [x20, #24]
	ldr	w8, [x8, #4]
	cmp	w9, w8
	b.ge	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_dc_i2c_write_buf
	b	LBB0_3
LBB0_16:
	mov	x0, x20
	bl	_dc_i2c_stop
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_II_INTFLAG_CLEAR,8,3           ; @II_INTFLAG_CLEAR
	.comm	_II_CMD_STATUS_ACK_BAD,4,2      ; @II_CMD_STATUS_ACK_BAD
	.comm	_II_CMD_STATUS_ABORT,4,2        ; @II_CMD_STATUS_ABORT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_STATE_IDLE,4,2                 ; @STATE_IDLE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dc_i2c_irq
.subsections_via_symbols
