	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_querystd
_vpif_querystd:                         ## @vpif_querystd
	.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
	movq	%rdx, %r14
	movq	(%rsi), %r12
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_debug@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_querystd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_querystd\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.comm	_video,4,2                      ## @video
	.comm	_querystd,4,2                   ## @querystd
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_querystd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_querystd
_vpif_querystd:                         ; @vpif_querystd
	.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
	mov	x20, x2
	ldr	x22, [x1]
	ldr	x19, [x22, #8]
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x21, _debug@GOTPAGE
Lloh4:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
	add	x19, x19, x23, lsl #2
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
Lloh10:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
Lloh13:
	adrp	x8, _video@GOTPAGE
Lloh14:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _querystd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _querystd@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_v4l2_subdev_call
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	ldr	w1, [x21]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x20
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_querystd\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_video,4,2                      ; @video
	.comm	_querystd,4,2                   ; @querystd
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set standard for sub devices\n"

	.no_dead_strip	_vpif_querystd
.subsections_via_symbols
