	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_ivc_read_get_next_frame  ## -- Begin function tegra_ivc_read_get_next_frame
	.p2align	4, 0x90
_tegra_ivc_read_get_next_frame:         ## @tegra_ivc_read_get_next_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_tegra_ivc_check_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	movl	12(%rbx), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_tegra_ivc_invalidate_frame
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tegra_ivc_frame_virt           ## TAILCALL
LBB0_3:
	movl	%eax, %edi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_ivc_read_get_next_frame  ; -- Begin function tegra_ivc_read_get_next_frame
	.p2align	2
_tegra_ivc_read_get_next_frame:         ; @tegra_ivc_read_get_next_frame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_3:
	mov	x0, x19
	bl	_tegra_ivc_check_read
	tbnz	w0, #31, LBB0_2
; %bb.4:
	bl	_smp_rmb
	ldr	w2, [x19]
	ldp	w1, w4, [x19, #8]
	mov	x0, x19
	mov	w3, #0
	bl	_tegra_ivc_invalidate_frame
	ldp	w2, w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tegra_ivc_frame_virt
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
