	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bpmp_i2c_deserialize
_tegra_bpmp_i2c_deserialize:            ## @tegra_bpmp_i2c_deserialize
	.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
	movq	(%rsi), %r8
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.1:
	movq	%rdx, %rbx
	movq	_I2C_M_RD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%ecx, %r15d
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
LBB0_9:
	testb	$1, %r15b
	je	LBB0_12
## %bb.10:
	leaq	(%rdi,%rdi,2), %rax
	testl	%edx, (%rbx,%rax,8)
	je	LBB0_12
## %bb.11:
	addq	8(%rbx,%rax,8), %rcx
LBB0_12:
	cmpq	%r8, %rcx
	jne	LBB0_19
## %bb.13:
	movq	8(%rsi), %r12
	addq	$16, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$24, %rbx
	decq	%r15
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, -16(%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rbx), %edi
	leaq	(%r12,%r13), %rsi
	movq	-8(%rbx), %rdx
	callq	_memcpy
	addq	-8(%rbx), %r13
	jmp	LBB0_16
LBB0_18:
	testq	%r8, %r8
	je	LBB0_17
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_17:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, %r9d
	andl	$-2, %r9d
	leaq	32(%rbx), %rax
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdi
	addq	$48, %rax
	cmpq	%rdi, %r9
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, -32(%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	-24(%rax), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%edx, -8(%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	(%rax), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_bpmp_i2c_deserialize
.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_deserialize
_tegra_bpmp_i2c_deserialize:            ; @tegra_bpmp_i2c_deserialize
	.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
	ldr	x8, [x1]
	cbz	w3, LBB0_10
; %bb.1:
	mov	x9, #0
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x20, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _I2C_M_RD@GOTPAGEOFF]
	ldr	w10, [x20]
	mov	w21, w3
	add	x11, x2, #8
	mov	x12, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #24
	subs	x12, x12, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x11, #-8]
	tst	w10, w13
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x11]
	add	x9, x13, x9
	b	LBB0_2
LBB0_5:
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	mov	x22, #0
	add	x23, x2, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #24
	subs	x21, x21, #1
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x23, #-8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, #8]
	add	x1, x19, x22
	ldr	x2, [x23]
	bl	_memcpy
	ldr	x8, [x23]
	add	x22, x8, x22
	b	LBB0_7
LBB0_10:
	cbz	x8, LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_bpmp_i2c_deserialize
.subsections_via_symbols
