	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_s_std
_vpbe_s_std:                            ## @vpbe_s_std
	.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	40(%rdi), %rax
	movslq	(%rdi), %rcx
	movq	(%rax), %rax
	movq	_V4L2_OUT_CAP_STD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movslq	4(%rdi), %r13
	callq	_vpbe_get_std_info
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	24(%rbx), %r15
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	*8(%r15)
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	callq	*(%r15)
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_1:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_OUT_CAP_STD,4,2           ## @V4L2_OUT_CAP_STD
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_video,4,2                      ## @video
	.comm	_s_std_output,4,2               ## @s_std_output
	.no_dead_strip	_vpbe_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_s_std
_vpbe_s_std:                            ; @vpbe_s_std
	.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, [x0, #40]
	ldrsw	x9, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _V4L2_OUT_CAP_STD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_OUT_CAP_STD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldrsw	x23, [x0, #4]
	bl	_vpbe_get_std_info
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x23, lsl #2]
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _s_std_output@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_std_output@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_v4l2_subdev_call
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x21, [x19, #24]
	ldr	x8, [x21, #8]
	ldr	w1, [x19, #16]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21]
	ldr	w1, [x19, #12]
	mov	x0, x21
	blr	x8
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENODATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_OUT_CAP_STD,4,2           ; @V4L2_OUT_CAP_STD
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_video,4,2                      ; @video
	.comm	_s_std_output,4,2               ; @s_std_output
	.no_dead_strip	_vpbe_s_std
.subsections_via_symbols
