	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_dw_irq_handler_master
_i2c_dw_irq_handler_master:             ## @i2c_dw_irq_handler_master
	.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	%rdi, %rbx
	callq	_i2c_dw_read_clear_intrbits
	movl	%eax, %r14d
	movq	_DW_IC_INTR_TX_ABRT@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_DW_IC_ERR_TX_ABRT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movq	_STATUS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DW_IC_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dw_writel
	jmp	LBB0_6
LBB0_2:
	movq	_DW_IC_INTR_RX_FULL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_i2c_dw_read
LBB0_4:
	movq	_DW_IC_INTR_TX_EMPTY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_i2c_dw_xfer_msg
LBB0_6:
	movq	_DW_IC_INTR_STOP_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	testl	%r14d, %eax
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
LBB0_8:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_complete
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ACCESS_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_DW_IC_INTR_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_dw_readl
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_i2c_dw_disable_int
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dw_writel
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_IC_INTR_TX_ABRT,4,2         ## @DW_IC_INTR_TX_ABRT
	.comm	_DW_IC_ERR_TX_ABRT,4,2          ## @DW_IC_ERR_TX_ABRT
	.comm	_STATUS_IDLE,4,2                ## @STATUS_IDLE
	.comm	_DW_IC_INTR_MASK,4,2            ## @DW_IC_INTR_MASK
	.comm	_DW_IC_INTR_RX_FULL,4,2         ## @DW_IC_INTR_RX_FULL
	.comm	_DW_IC_INTR_TX_EMPTY,4,2        ## @DW_IC_INTR_TX_EMPTY
	.comm	_DW_IC_INTR_STOP_DET,4,2        ## @DW_IC_INTR_STOP_DET
	.comm	_ACCESS_INTR_MASK,4,2           ## @ACCESS_INTR_MASK
	.no_dead_strip	_i2c_dw_irq_handler_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_dw_irq_handler_master
_i2c_dw_irq_handler_master:             ; @i2c_dw_irq_handler_master
	.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	x19, x0
	bl	_i2c_dw_read_clear_intrbits
	mov	x20, x0
Lloh0:
	adrp	x21, _DW_IC_INTR_TX_ABRT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DW_IC_INTR_TX_ABRT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DW_IC_ERR_TX_ABRT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DW_IC_ERR_TX_ABRT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _STATUS_IDLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STATUS_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh8:
	adrp	x8, _DW_IC_INTR_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DW_IC_INTR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_dw_writel
	b	LBB0_6
LBB0_2:
Lloh11:
	adrp	x8, _DW_IC_INTR_RX_FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DW_IC_INTR_RX_FULL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_i2c_dw_read
LBB0_4:
Lloh14:
	adrp	x8, _DW_IC_INTR_TX_EMPTY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DW_IC_INTR_TX_EMPTY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_i2c_dw_xfer_msg
LBB0_6:
	ldr	w8, [x21]
Lloh17:
	adrp	x9, _DW_IC_INTR_STOP_DET@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DW_IC_INTR_STOP_DET@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_8:
	add	x0, x19, #4
	bl	_complete
LBB0_9:
	mov	w0, #0
	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_10:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _ACCESS_INTR_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ACCESS_INTR_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.11:
Lloh23:
	adrp	x21, _DW_IC_INTR_MASK@GOTPAGE
Lloh24:
	ldr	x21, [x21, _DW_IC_INTR_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dw_readl
	mov	x20, x0
	mov	x0, x19
	bl	_i2c_dw_disable_int
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_dw_writel
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_IC_INTR_TX_ABRT,4,2         ; @DW_IC_INTR_TX_ABRT
	.comm	_DW_IC_ERR_TX_ABRT,4,2          ; @DW_IC_ERR_TX_ABRT
	.comm	_STATUS_IDLE,4,2                ; @STATUS_IDLE
	.comm	_DW_IC_INTR_MASK,4,2            ; @DW_IC_INTR_MASK
	.comm	_DW_IC_INTR_RX_FULL,4,2         ; @DW_IC_INTR_RX_FULL
	.comm	_DW_IC_INTR_TX_EMPTY,4,2        ; @DW_IC_INTR_TX_EMPTY
	.comm	_DW_IC_INTR_STOP_DET,4,2        ; @DW_IC_INTR_STOP_DET
	.comm	_ACCESS_INTR_MASK,4,2           ; @ACCESS_INTR_MASK
	.no_dead_strip	_i2c_dw_irq_handler_master
.subsections_via_symbols
