	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_i2c_intr
_tegra_i2c_intr:                        ## @tegra_i2c_intr
	.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	%rdi, %rbx
	callq	_LOCK
	movq	_I2C_INTERRUPT_SOURCE_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_I2C_ERROR_MASK@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_11
## %bb.3:
	movq	_I2C_INT_NOACK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_IIC_ENOACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_5:
	movq	_I2C_INT_ARB_LOST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_IIC_EBUSERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_7:
	movq	_I2C_INT_TFIFO_OVR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_I2C_INT_RFIFO_UNF@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
LBB0_9:
	movq	_IIC_EBUSERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_10:
	movl	$1, (%rbx)
	jmp	LBB0_23
LBB0_1:
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_I2C_INTERRUPT_STATUS_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_WR4
	jmp	LBB0_27
LBB0_11:
	movq	_I2C_INT_RFIFO_DATA_REQ@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	je	LBB0_15
## %bb.12:
	movq	_IIC_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.13:
	movq	%rbx, %rdi
	callq	_tegra_i2c_rx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movl	(%r15), %edx
	jmp	LBB0_21
LBB0_15:
	movq	_I2C_INT_TFIFO_DATA_REQ@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_23
## %bb.16:
	movq	_IIC_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
LBB0_20:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_device_printf
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movq	_I2C_INT_TFIFO_DATA_REQ@GOTPCREL(%rip), %rcx
	movl	(%r15), %edx
	orl	(%rcx), %edx
LBB0_21:
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	jmp	LBB0_22
LBB0_19:
	movq	_I2C_INT_TFIFO_DATA_REQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_20
LBB0_17:
	movq	%rbx, %rdi
	callq	_tegra_i2c_tx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_RD4
	movq	_I2C_INT_TFIFO_DATA_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
LBB0_22:
	movq	%rbx, %rdi
	callq	_WR4
LBB0_23:
	movq	_I2C_INT_PACKET_XFER_COMPLETE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_25
## %bb.24:
	movl	$1, (%rbx)
LBB0_25:
	movq	_I2C_INTERRUPT_STATUS_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_WR4
	cmpl	$0, (%rbx)
	je	LBB0_27
## %bb.26:
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	%rbx, %rdi
	callq	_wakeup
LBB0_27:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UNLOCK                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_INTERRUPT_SOURCE_REGISTER,4,2 ## @I2C_INTERRUPT_SOURCE_REGISTER
	.comm	_I2C_INTERRUPT_MASK_REGISTER,4,2 ## @I2C_INTERRUPT_MASK_REGISTER
	.comm	_I2C_INT_TFIFO_DATA_REQ,4,2     ## @I2C_INT_TFIFO_DATA_REQ
	.comm	_I2C_INT_RFIFO_DATA_REQ,4,2     ## @I2C_INT_RFIFO_DATA_REQ
	.comm	_I2C_INTERRUPT_STATUS_REGISTER,4,2 ## @I2C_INTERRUPT_STATUS_REGISTER
	.comm	_I2C_ERROR_MASK,4,2             ## @I2C_ERROR_MASK
	.comm	_I2C_INT_NOACK,4,2              ## @I2C_INT_NOACK
	.comm	_IIC_ENOACK,8,3                 ## @IIC_ENOACK
	.comm	_I2C_INT_ARB_LOST,4,2           ## @I2C_INT_ARB_LOST
	.comm	_IIC_EBUSERR,8,3                ## @IIC_EBUSERR
	.comm	_I2C_INT_TFIFO_OVR,4,2          ## @I2C_INT_TFIFO_OVR
	.comm	_I2C_INT_RFIFO_UNF,4,2          ## @I2C_INT_RFIFO_UNF
	.comm	_IIC_M_RD,4,2                   ## @IIC_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected data interrupt: 0x%08X\n"

	.comm	_I2C_INT_PACKET_XFER_COMPLETE,4,2 ## @I2C_INT_PACKET_XFER_COMPLETE
	.no_dead_strip	_tegra_i2c_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_i2c_intr
_tegra_i2c_intr:                        ; @tegra_i2c_intr
	.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	_LOCK
Lloh0:
	adrp	x8, _I2C_INTERRUPT_SOURCE_REGISTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_INTERRUPT_SOURCE_REGISTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RD4
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.1:
Lloh3:
	adrp	x9, _I2C_ERROR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_ERROR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _I2C_INT_NOACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_INT_NOACK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _IIC_ENOACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIC_ENOACK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_4:
Lloh12:
	adrp	x8, _I2C_INT_ARB_LOST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_INT_ARB_LOST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
Lloh15:
	adrp	x8, _IIC_EBUSERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIC_EBUSERR@GOTPAGEOFF]
	tst	w9, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x8]
	str	x9, [x19, #16]
LBB0_6:
Lloh17:
	adrp	x9, _I2C_INT_TFIFO_OVR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_INT_TFIFO_OVR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_8
; %bb.7:
Lloh20:
	adrp	x9, _I2C_INT_RFIFO_UNF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I2C_INT_RFIFO_UNF@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_9
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_23
LBB0_10:
Lloh23:
	adrp	x21, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh24:
	ldr	x21, [x21, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_RD4
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh25:
	adrp	x8, _I2C_INTERRUPT_STATUS_REGISTER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I2C_INTERRUPT_STATUS_REGISTER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WR4
	b	LBB0_27
LBB0_11:
Lloh28:
	adrp	x21, _I2C_INT_RFIFO_DATA_REQ@GOTPAGE
Lloh29:
	ldr	x21, [x21, _I2C_INT_RFIFO_DATA_REQ@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w20
	b.eq	LBB0_15
; %bb.12:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IIC_M_RD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IIC_M_RD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.13:
	mov	x0, x19
	bl	_tegra_i2c_rx
	cbnz	w0, LBB0_23
; %bb.14:
Lloh33:
	adrp	x22, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh34:
	ldr	x22, [x22, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_RD4
	ldr	w8, [x21]
	b	LBB0_18
LBB0_15:
Lloh35:
	adrp	x9, _I2C_INT_TFIFO_DATA_REQ@GOTPAGE
Lloh36:
	ldr	x9, [x9, _I2C_INT_TFIFO_DATA_REQ@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_23
; %bb.16:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _IIC_M_RD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IIC_M_RD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
LBB0_17:
	ldr	w0, [x19, #4]
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_device_printf
Lloh43:
	adrp	x22, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh44:
	ldr	x22, [x22, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_RD4
Lloh45:
	adrp	x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
LBB0_18:
	bic	w2, w0, w8
	ldr	w1, [x22]
	b	LBB0_22
LBB0_19:
Lloh48:
	adrp	x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
LBB0_20:
	mov	x0, x19
	bl	_tegra_i2c_tx
	cbnz	w0, LBB0_23
; %bb.21:
Lloh51:
	adrp	x21, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh52:
	ldr	x21, [x21, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_RD4
Lloh53:
	adrp	x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGE
Lloh54:
	ldr	x8, [x8, _I2C_INT_TFIFO_DATA_REQ@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
LBB0_22:
	mov	x0, x19
	bl	_WR4
LBB0_23:
Lloh56:
	adrp	x8, _I2C_INT_PACKET_XFER_COMPLETE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _I2C_INT_PACKET_XFER_COMPLETE@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
	mov	w8, #1
	str	w8, [x19]
LBB0_25:
Lloh59:
	adrp	x8, _I2C_INTERRUPT_STATUS_REGISTER@GOTPAGE
Lloh60:
	ldr	x8, [x8, _I2C_INTERRUPT_STATUS_REGISTER@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WR4
	ldr	w8, [x19]
	cbz	w8, LBB0_27
; %bb.26:
Lloh62:
	adrp	x8, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh63:
	ldr	x8, [x8, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
	mov	x0, x19
	bl	_wakeup
LBB0_27:
	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	_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_INTERRUPT_SOURCE_REGISTER,4,2 ; @I2C_INTERRUPT_SOURCE_REGISTER
	.comm	_I2C_INTERRUPT_MASK_REGISTER,4,2 ; @I2C_INTERRUPT_MASK_REGISTER
	.comm	_I2C_INT_TFIFO_DATA_REQ,4,2     ; @I2C_INT_TFIFO_DATA_REQ
	.comm	_I2C_INT_RFIFO_DATA_REQ,4,2     ; @I2C_INT_RFIFO_DATA_REQ
	.comm	_I2C_INTERRUPT_STATUS_REGISTER,4,2 ; @I2C_INTERRUPT_STATUS_REGISTER
	.comm	_I2C_ERROR_MASK,4,2             ; @I2C_ERROR_MASK
	.comm	_I2C_INT_NOACK,4,2              ; @I2C_INT_NOACK
	.comm	_IIC_ENOACK,8,3                 ; @IIC_ENOACK
	.comm	_I2C_INT_ARB_LOST,4,2           ; @I2C_INT_ARB_LOST
	.comm	_IIC_EBUSERR,8,3                ; @IIC_EBUSERR
	.comm	_I2C_INT_TFIFO_OVR,4,2          ; @I2C_INT_TFIFO_OVR
	.comm	_I2C_INT_RFIFO_UNF,4,2          ; @I2C_INT_RFIFO_UNF
	.comm	_IIC_M_RD,4,2                   ; @IIC_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected data interrupt: 0x%08X\n"

	.comm	_I2C_INT_PACKET_XFER_COMPLETE,4,2 ; @I2C_INT_PACKET_XFER_COMPLETE
	.no_dead_strip	_tegra_i2c_intr
.subsections_via_symbols
