	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_irq_txempty
_i2c_pxa_irq_txempty:                   ## @i2c_pxa_irq_txempty
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movq	_ICR_START@GOTPCREL(%rip), %rdx
	movq	_ICR_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rdx), %r14d
	movq	_ICR_ACKNAK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	_ICR_TB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	_ISR_ALD@GOTPCREL(%rip), %rdx
	movq	_ISR_BED@GOTPCREL(%rip), %rsi
	movq	_ISR_RWM@GOTPCREL(%rip), %r9
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %r8
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %r10
	movq	_ISR_ACKNAK@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, (%rdx)
	jne	LBB0_31
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, (%rsi)
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r15), %rdi
	movl	(%r10), %ecx
	movl	(%r11), %eax
	testl	%ecx, (%rdi)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %eax
	je	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r15), %r13
	movq	40(%r15), %r12
	movl	4(%r12), %edi
	testl	%ebx, (%r9)
	jne	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%edi, %r13d
	jl	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movslq	16(%r15), %rcx
	decq	%rcx
	cmpq	%rcx, %rax
	jge	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%r15)
	incq	%rax
	movq	%rax, 8(%r15)
	leaq	16(%r12), %rdi
	movq	%rdi, 40(%r15)
	movl	(%r8), %eax
	testl	%eax, 16(%r12)
	jne	LBB0_1
## %bb.25:
	callq	_i2c_pxa_addr_byte
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	__IDBR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	40(%r15), %rdi
	callq	_i2c_pxa_addr_byte
	movl	%eax, 20(%r15)
	movq	_ICR_ALDIE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_ICR_START@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_31:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_pxa_scream_blue_murder     ## TAILCALL
LBB0_13:
	decl	%edi
	cmpl	%edi, %r13d
	jne	LBB0_16
## %bb.14:
	movslq	16(%r15), %rax
	decq	%rax
	cmpq	%rax, 8(%r15)
	jne	LBB0_16
## %bb.15:
	movq	_ICR_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_ICR_ACKNAK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_16:
	movq	_ICR_ALDIE@GOTPCREL(%rip), %rax
LBB0_17:
	orl	(%rax), %r14d
	movq	_ICR_TB@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_30
LBB0_19:
	movq	8(%r12), %rax
	leal	1(%r13), %ecx
	movl	%ecx, (%r15)
	movl	(%rax,%r13,4), %ebx
	movq	%r15, %rdi
	callq	__IDBR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_ICR_ALDIE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_ICR_TB@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %ecx
	movq	40(%r15), %rax
	cmpl	4(%rax), %ecx
	jne	LBB0_30
## %bb.20:
	movq	_I2C_M_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_22
## %bb.21:
	movslq	16(%r15), %rax
	decq	%rax
	cmpq	%rax, 8(%r15)
	jne	LBB0_30
LBB0_22:
	movq	_ICR_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_30
LBB0_26:
	testl	%edi, %edi
	jne	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_i2c_pxa_reset
LBB0_28:
	movq	%r15, %rdi
	xorl	%esi, %esi
	jmp	LBB0_29
LBB0_6:
	testl	%ebx, %eax
	movq	_BUS_ERROR@GOTPCREL(%rip), %rax
	je	LBB0_11
## %bb.7:
	cmpl	$0, (%r15)
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r15)
	je	LBB0_9
LBB0_10:
	movq	_XFER_NAKED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_BUS_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%r15, %rdi
LBB0_29:
	callq	_i2c_pxa_master_complete
LBB0_30:
	movq	24(%r15), %rax
	movslq	32(%r15), %rcx
	movl	%r14d, -4(%rax,%rcx,4)
	movq	%r15, %rdi
	callq	__ICR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_show_state                     ## TAILCALL
LBB0_9:
	movq	_I2C_RETRY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ICR_START,4,2                  ## @ICR_START
	.comm	_ICR_STOP,4,2                   ## @ICR_STOP
	.comm	_ICR_ACKNAK,4,2                 ## @ICR_ACKNAK
	.comm	_ICR_TB,4,2                     ## @ICR_TB
	.comm	_ISR_ALD,4,2                    ## @ISR_ALD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALD set"

	.comm	_ISR_BED,4,2                    ## @ISR_BED
	.comm	_I2C_M_IGNORE_NAK,4,2           ## @I2C_M_IGNORE_NAK
	.comm	_ISR_ACKNAK,4,2                 ## @ISR_ACKNAK
	.comm	_BUS_ERROR,4,2                  ## @BUS_ERROR
	.comm	_I2C_RETRY,4,2                  ## @I2C_RETRY
	.comm	_XFER_NAKED,4,2                 ## @XFER_NAKED
	.comm	_ISR_RWM,4,2                    ## @ISR_RWM
	.comm	_ICR_ALDIE,4,2                  ## @ICR_ALDIE
	.comm	_I2C_M_STOP,4,2                 ## @I2C_M_STOP
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.no_dead_strip	_i2c_pxa_irq_txempty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_irq_txempty
_i2c_pxa_irq_txempty:                   ; @i2c_pxa_irq_txempty
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	__ICR
	bl	_readl
Lloh0:
	adrp	x24, _ICR_START@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ICR_START@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x23, _ICR_STOP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ICR_STOP@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w9, w9, w8
Lloh4:
	adrp	x8, _ICR_ACKNAK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ICR_ACKNAK@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh6:
	adrp	x22, _ICR_TB@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ICR_TB@GOTPAGEOFF]
	orr	w9, w9, w10
	ldr	w10, [x22]
	orr	w9, w9, w10
	bic	w20, w0, w9
Lloh8:
	adrp	x10, _ISR_ALD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ISR_ALD@GOTPAGEOFF]
Lloh10:
	adrp	x11, _ISR_BED@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ISR_BED@GOTPAGEOFF]
Lloh12:
	adrp	x12, _ISR_RWM@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ISR_RWM@GOTPAGEOFF]
Lloh14:
	adrp	x13, _I2C_M_NOSTART@GOTPAGE
Lloh15:
	ldr	x13, [x13, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh16:
	adrp	x14, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh17:
	ldr	x14, [x14, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
Lloh18:
	adrp	x15, _ISR_ACKNAK@GOTPAGE
Lloh19:
	ldr	x15, [x15, _ISR_ACKNAK@GOTPAGEOFF]
Lloh20:
	adrp	x9, _BUS_ERROR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BUS_ERROR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x10]
	tst	w16, w21
	b.ne	LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w16, [x11]
	tst	w16, w21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x16, [x19, #40]
	ldr	w17, [x16]
	ldr	w0, [x14]
	ldr	w16, [x15]
	and	w16, w16, w21
	tst	w0, w17
	b.eq	LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w16, LBB0_28
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x12]
	ldrsw	x17, [x19]
	ldr	x0, [x19, #40]
	ldr	w16, [x0, #4]
	tst	w1, w21
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w17, w16
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x17, [x19, #8]
	ldrsw	x1, [x19, #16]
	sub	x1, x1, #1
	cmp	x17, x1
	b.ge	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	str	wzr, [x19]
	add	x16, x17, #1
	str	x16, [x19, #8]
	ldr	w16, [x0, #16]!
	str	x0, [x19, #40]
	ldr	w17, [x13]
	tst	w17, w16
	b.ne	LBB0_1
; %bb.9:
	bl	_i2c_pxa_addr_byte
	mov	x21, x0
	mov	x0, x19
	bl	__IDBR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	ldr	x0, [x19, #40]
	bl	_i2c_pxa_addr_byte
	str	w0, [x19, #20]
Lloh22:
	adrp	x8, _ICR_ALDIE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICR_ALDIE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w8, w20, w8
	ldr	w9, [x24]
	ldr	w10, [x22]
	orr	w8, w8, w9
	orr	w20, w8, w10
	b	LBB0_30
LBB0_10:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i2c_pxa_scream_blue_murder
LBB0_11:
	sub	w9, w16, #1
	cmp	w17, w9
	b.ne	LBB0_14
; %bb.12:
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19, #16]
	sub	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	ldr	w9, [x23]
	ldr	w8, [x8]
	orr	w9, w9, w20
	orr	w20, w9, w8
LBB0_14:
Lloh27:
	adrp	x8, _ICR_ALDIE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ICR_ALDIE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w8, w20
	orr	w20, w8, w9
	b	LBB0_30
LBB0_15:
	ldr	x8, [x0, #8]
	add	w9, w17, #1
	str	w9, [x19]
	ldr	w21, [x8, x17, lsl #2]
	mov	x0, x19
	bl	__IDBR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
Lloh30:
	adrp	x8, _ICR_ALDIE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ICR_ALDIE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w8, w20
	orr	w20, w8, w9
	ldr	w9, [x19]
	ldr	x8, [x19, #40]
	ldr	w10, [x8, #4]
	cmp	w9, w10
	b.ne	LBB0_30
; %bb.16:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _I2C_M_STOP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _I2C_M_STOP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.17:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	sub	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_30
LBB0_18:
	ldr	w8, [x23]
	orr	w20, w8, w20
	b	LBB0_30
LBB0_19:
	cbnz	w16, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_i2c_pxa_reset
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_29
LBB0_22:
	cbz	w16, LBB0_26
; %bb.23:
	ldr	w8, [x19]
	cbnz	w8, LBB0_25
; %bb.24:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_27
LBB0_25:
Lloh36:
	adrp	x9, _XFER_NAKED@GOTPAGE
Lloh37:
	ldr	x9, [x9, _XFER_NAKED@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh38:
	adrp	x9, _BUS_ERROR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BUS_ERROR@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh40:
	adrp	x9, _I2C_RETRY@GOTPAGE
Lloh41:
	ldr	x9, [x9, _I2C_RETRY@GOTPAGEOFF]
LBB0_28:
	ldr	w1, [x9]
	mov	x0, x19
LBB0_29:
	bl	_i2c_pxa_master_complete
LBB0_30:
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #32]
	add	x8, x8, x9, lsl #2
	stur	w20, [x8, #-4]
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_show_state
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ICR_START,4,2                  ; @ICR_START
	.comm	_ICR_STOP,4,2                   ; @ICR_STOP
	.comm	_ICR_ACKNAK,4,2                 ; @ICR_ACKNAK
	.comm	_ICR_TB,4,2                     ; @ICR_TB
	.comm	_ISR_ALD,4,2                    ; @ISR_ALD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALD set"

	.comm	_ISR_BED,4,2                    ; @ISR_BED
	.comm	_I2C_M_IGNORE_NAK,4,2           ; @I2C_M_IGNORE_NAK
	.comm	_ISR_ACKNAK,4,2                 ; @ISR_ACKNAK
	.comm	_BUS_ERROR,4,2                  ; @BUS_ERROR
	.comm	_I2C_RETRY,4,2                  ; @I2C_RETRY
	.comm	_XFER_NAKED,4,2                 ; @XFER_NAKED
	.comm	_ISR_RWM,4,2                    ; @ISR_RWM
	.comm	_ICR_ALDIE,4,2                  ; @ICR_ALDIE
	.comm	_I2C_M_STOP,4,2                 ; @I2C_M_STOP
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.no_dead_strip	_i2c_pxa_irq_txempty
.subsections_via_symbols
