	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bpmp_i2c_msg_xfer
_tegra_bpmp_i2c_msg_xfer:               ## @tegra_bpmp_i2c_msg_xfer
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_CMD_I2C_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movl	4(%rdi), %eax
	movl	%eax, (%rsi)
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MRQ_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%rbx, -48(%rbp)
	movl	$8, -56(%rbp)
	movq	%r15, -64(%rbp)
	movl	$4, -72(%rbp)
	movl	(%r12), %edi
	leaq	-72(%rbp), %rsi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	callq	_tegra_bpmp_transfer_atomic
	jmp	LBB0_3
LBB0_2:
	callq	_tegra_bpmp_transfer
LBB0_3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_I2C_XFER,4,2               ## @CMD_I2C_XFER
	.comm	_MRQ_I2C,4,2                    ## @MRQ_I2C
	.no_dead_strip	_tegra_bpmp_i2c_msg_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bpmp_i2c_msg_xfer
_tegra_bpmp_i2c_msg_xfer:               ; @tegra_bpmp_i2c_msg_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CMD_I2C_XFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_I2C_XFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	ldr	w8, [x0, #4]
	str	w8, [x1]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x8, _MRQ_I2C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRQ_I2C@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x21, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #24]
	str	x20, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	w0, [x22]
	add	x1, sp, #8
	cbz	w19, LBB0_2
; %bb.1:
	bl	_tegra_bpmp_transfer_atomic
	b	LBB0_3
LBB0_2:
	bl	_tegra_bpmp_transfer
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_I2C_XFER,4,2               ; @CMD_I2C_XFER
	.comm	_MRQ_I2C,4,2                    ; @MRQ_I2C
	.no_dead_strip	_tegra_bpmp_i2c_msg_xfer
.subsections_via_symbols
