	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_std
_vidioc_s_std:                          ## @vidioc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	callq	_video_drvdata
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	leaq	20(%rax), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, 16(%r14)
	je	LBB0_5
## %bb.6:
	movl	$720, 4(%r14)                   ## imm = 0x2D0
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	$576, %eax                      ## imm = 0x240
	movl	$480, %ecx                      ## imm = 0x1E0
	cmovel	%eax, %ecx
	movl	%ecx, 8(%r14)
	movl	%r15d, (%r14)
	movq	%r14, %rdi
	callq	_stk1160_set_std
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_stk1160_set_fmt
	movq	%r14, %rdi
	addq	$12, %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	xorl	%esi, %esi
	callq	_v4l2_device_call_all
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_std
_vidioc_s_std:                          ; @vidioc_s_std
	.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	x20, x2
	bl	_video_drvdata
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	add	x0, x0, #20
	bl	_vb2_is_busy
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #480
	mov	w9, #576
	csel	w10, w9, w8, eq
	mov	w8, #720
	stp	w8, w10, [x19, #4]
	str	w20, [x19]
	mov	x0, x19
	bl	_stk1160_set_std
	mov	x0, x19
	mov	x1, #0
	bl	_stk1160_set_fmt
Lloh5:
	adrp	x8, _video@GOTPAGE
Lloh6:
	ldr	x8, [x8, _video@GOTPAGEOFF]
	add	x0, x19, #12
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _s_std@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldr	w4, [x19]
	mov	w1, #0
	bl	_v4l2_device_call_all
	b	LBB0_1
LBB0_8:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols
