	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_i2c_start_msg
_tegra_i2c_start_msg:                   ## @tegra_i2c_start_msg
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PACKET_HEADER0_PROTOCOL_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PACKET_HEADER0_CONT_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_PACKET_HEADER0_PACKET_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_I2C_TX_PACKET_FIFO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_WR4
	movl	(%r12), %esi
	movl	(%rbx), %edx
	decl	%edx
	movq	%r14, %rdi
	callq	_WR4
	movq	_I2C_HEADER_IE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XFER_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_I2C_HEADER_CONTINUE_XFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_XFER_REPEAT_START@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_I2C_HEADER_REPEAT_START@GOTPCREL(%rip), %rcx
LBB0_4:
	orl	(%rcx), %eax
LBB0_5:
	movl	4(%rbx), %edx
	movq	_I2C_HEADER_SLAVE_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_IIC_M_RD@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_I2C_HEADER_READ@GOTPCREL(%rip), %rax
	btsl	%ecx, %edx
	orl	(%rax), %edx
	jmp	LBB0_8
LBB0_7:
	btrl	%ecx, %edx
LBB0_8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_WR4
	movq	_I2C_INT_NOACK@GOTPCREL(%rip), %rax
	movq	_I2C_INT_ARB_LOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r15), %ecx
	andl	8(%rbx), %ecx
	orl	(%rax), %edx
	movq	_I2C_INT_PACKET_XFER_COMPLETE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.10:
	movq	_I2C_INT_TFIFO_DATA_REQ@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_I2C_INT_RFIFO_DATA_REQ@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %edx
	movq	_I2C_INTERRUPT_MASK_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_HEADER0_HEADER_SIZE_SHIFT,4,2 ## @PACKET_HEADER0_HEADER_SIZE_SHIFT
	.comm	_PACKET_HEADER0_PROTOCOL_I2C,4,2 ## @PACKET_HEADER0_PROTOCOL_I2C
	.comm	_PACKET_HEADER0_CONT_ID_SHIFT,4,2 ## @PACKET_HEADER0_CONT_ID_SHIFT
	.comm	_PACKET_HEADER0_PACKET_ID_SHIFT,4,2 ## @PACKET_HEADER0_PACKET_ID_SHIFT
	.comm	_I2C_TX_PACKET_FIFO,4,2         ## @I2C_TX_PACKET_FIFO
	.comm	_I2C_HEADER_IE_ENABLE,4,2       ## @I2C_HEADER_IE_ENABLE
	.comm	_XFER_CONTINUE,4,2              ## @XFER_CONTINUE
	.comm	_I2C_HEADER_CONTINUE_XFER,4,2   ## @I2C_HEADER_CONTINUE_XFER
	.comm	_XFER_REPEAT_START,4,2          ## @XFER_REPEAT_START
	.comm	_I2C_HEADER_REPEAT_START,4,2    ## @I2C_HEADER_REPEAT_START
	.comm	_I2C_HEADER_SLAVE_ADDR_SHIFT,4,2 ## @I2C_HEADER_SLAVE_ADDR_SHIFT
	.comm	_IIC_M_RD,4,2                   ## @IIC_M_RD
	.comm	_I2C_HEADER_READ,4,2            ## @I2C_HEADER_READ
	.comm	_I2C_INT_NOACK,4,2              ## @I2C_INT_NOACK
	.comm	_I2C_INT_ARB_LOST,4,2           ## @I2C_INT_ARB_LOST
	.comm	_I2C_INT_PACKET_XFER_COMPLETE,4,2 ## @I2C_INT_PACKET_XFER_COMPLETE
	.comm	_I2C_INT_RFIFO_DATA_REQ,4,2     ## @I2C_INT_RFIFO_DATA_REQ
	.comm	_I2C_INT_TFIFO_DATA_REQ,4,2     ## @I2C_INT_TFIFO_DATA_REQ
	.comm	_I2C_INTERRUPT_MASK_REGISTER,4,2 ## @I2C_INTERRUPT_MASK_REGISTER
	.no_dead_strip	_tegra_i2c_start_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_i2c_start_msg
_tegra_i2c_start_msg:                   ; @tegra_i2c_start_msg
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PACKET_HEADER0_PROTOCOL_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET_HEADER0_PROTOCOL_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PACKET_HEADER0_CONT_ID_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PACKET_HEADER0_CONT_ID_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _PACKET_HEADER0_PACKET_ID_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PACKET_HEADER0_PACKET_ID_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w2, w8, w9
Lloh9:
	adrp	x22, _I2C_TX_PACKET_FIFO@GOTPAGE
Lloh10:
	ldr	x22, [x22, _I2C_TX_PACKET_FIFO@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_WR4
	ldr	w1, [x22]
	ldr	w8, [x20]
	sub	w2, w8, #1
	mov	x0, x19
	bl	_WR4
Lloh11:
	adrp	x8, _I2C_HEADER_IE_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_HEADER_IE_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _XFER_CONTINUE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XFER_CONTINUE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_2
; %bb.1:
Lloh17:
	adrp	x9, _I2C_HEADER_CONTINUE_XFER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_HEADER_CONTINUE_XFER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh19:
	adrp	x9, _XFER_REPEAT_START@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XFER_REPEAT_START@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_5
; %bb.3:
Lloh22:
	adrp	x9, _I2C_HEADER_REPEAT_START@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I2C_HEADER_REPEAT_START@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
Lloh24:
	adrp	x9, _I2C_HEADER_SLAVE_ADDR_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I2C_HEADER_SLAVE_ADDR_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ldp	w10, w11, [x20, #4]
	lsl	w10, w10, w9
	orr	w8, w10, w8
Lloh27:
	adrp	x21, _IIC_M_RD@GOTPAGE
Lloh28:
	ldr	x21, [x21, _IIC_M_RD@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w11
	b.eq	LBB0_7
; %bb.6:
Lloh29:
	adrp	x10, _I2C_HEADER_READ@GOTPAGE
Lloh30:
	ldr	x10, [x10, _I2C_HEADER_READ@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w9, w11, w9
	orr	w8, w8, w9
	orr	w2, w8, w10
	b	LBB0_8
LBB0_7:
	mov	w10, #1
	lsl	w9, w10, w9
	bic	w2, w8, w9
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_WR4
Lloh32:
	adrp	x8, _I2C_INT_NOACK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_INT_NOACK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _I2C_INT_ARB_LOST@GOTPAGE
Lloh36:
	ldr	x9, [x9, _I2C_INT_ARB_LOST@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _I2C_INT_PACKET_XFER_COMPLETE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _I2C_INT_PACKET_XFER_COMPLETE@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	ldr	w11, [x20, #8]
	ldr	w12, [x21]
	orr	w8, w9, w8
	orr	w8, w8, w10
Lloh41:
	adrp	x9, _I2C_INT_TFIFO_DATA_REQ@GOTPAGE
Lloh42:
	ldr	x9, [x9, _I2C_INT_TFIFO_DATA_REQ@GOTPAGEOFF]
Lloh43:
	adrp	x10, _I2C_INT_RFIFO_DATA_REQ@GOTPAGE
Lloh44:
	ldr	x10, [x10, _I2C_INT_RFIFO_DATA_REQ@GOTPAGEOFF]
	tst	w12, w11
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh45:
	adrp	x8, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _I2C_INTERRUPT_MASK_REGISTER@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	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	_WR4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_HEADER0_HEADER_SIZE_SHIFT,4,2 ; @PACKET_HEADER0_HEADER_SIZE_SHIFT
	.comm	_PACKET_HEADER0_PROTOCOL_I2C,4,2 ; @PACKET_HEADER0_PROTOCOL_I2C
	.comm	_PACKET_HEADER0_CONT_ID_SHIFT,4,2 ; @PACKET_HEADER0_CONT_ID_SHIFT
	.comm	_PACKET_HEADER0_PACKET_ID_SHIFT,4,2 ; @PACKET_HEADER0_PACKET_ID_SHIFT
	.comm	_I2C_TX_PACKET_FIFO,4,2         ; @I2C_TX_PACKET_FIFO
	.comm	_I2C_HEADER_IE_ENABLE,4,2       ; @I2C_HEADER_IE_ENABLE
	.comm	_XFER_CONTINUE,4,2              ; @XFER_CONTINUE
	.comm	_I2C_HEADER_CONTINUE_XFER,4,2   ; @I2C_HEADER_CONTINUE_XFER
	.comm	_XFER_REPEAT_START,4,2          ; @XFER_REPEAT_START
	.comm	_I2C_HEADER_REPEAT_START,4,2    ; @I2C_HEADER_REPEAT_START
	.comm	_I2C_HEADER_SLAVE_ADDR_SHIFT,4,2 ; @I2C_HEADER_SLAVE_ADDR_SHIFT
	.comm	_IIC_M_RD,4,2                   ; @IIC_M_RD
	.comm	_I2C_HEADER_READ,4,2            ; @I2C_HEADER_READ
	.comm	_I2C_INT_NOACK,4,2              ; @I2C_INT_NOACK
	.comm	_I2C_INT_ARB_LOST,4,2           ; @I2C_INT_ARB_LOST
	.comm	_I2C_INT_PACKET_XFER_COMPLETE,4,2 ; @I2C_INT_PACKET_XFER_COMPLETE
	.comm	_I2C_INT_RFIFO_DATA_REQ,4,2     ; @I2C_INT_RFIFO_DATA_REQ
	.comm	_I2C_INT_TFIFO_DATA_REQ,4,2     ; @I2C_INT_TFIFO_DATA_REQ
	.comm	_I2C_INTERRUPT_MASK_REGISTER,4,2 ; @I2C_INTERRUPT_MASK_REGISTER
	.no_dead_strip	_tegra_i2c_start_msg
.subsections_via_symbols
