	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_video_drvdata
	movq	(%rax), %r13
	xorl	%r15d, %r15d
	cmpq	%rbx, (%r13)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r13)
	jle	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movq	%rax, %r14
	movq	%rbx, (%r13)
	movl	$720, -48(%rbp)                 ## imm = 0x2D0
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movl	$576, %eax                      ## imm = 0x240
	movl	$480, %ecx                      ## imm = 0x1E0
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_vidioc_try_fmt_vid_cap
	movl	-48(%rbp), %esi
	movl	%esi, 16(%r13)
	movl	-44(%rbp), %edx
	movl	%edx, 20(%r13)
	leaq	32(%r13), %rcx
	leaq	28(%r13), %r8
	movq	%r14, %rdi
	callq	_size_to_scale
	movq	%r14, %rdi
	callq	_em28xx_resolution_set
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r13), %r8
	addq	$24, %r13
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_v4l2_device_call_all
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_STD_525_60,8,3            ## @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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_video_drvdata
	ldr	x23, [x0]
	ldr	x8, [x23]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x23, #8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	str	x22, [x23]
	mov	w8, #720
Lloh3:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	tst	x9, x22
	mov	w9, #480
	mov	w10, #576
	csel	w9, w10, w9, eq
	stp	w8, w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_vidioc_try_fmt_vid_cap
	ldp	w1, w2, [sp, #8]
	stp	w1, w2, [x23, #16]
	add	x3, x23, #32
	add	x4, x23, #28
	mov	x0, x19
	bl	_size_to_scale
	mov	x0, x19
	bl	_em28xx_resolution_set
Lloh6:
	adrp	x8, _video@GOTPAGE
Lloh7:
	ldr	x8, [x8, _video@GOTPAGEOFF]
	add	x0, x23, #24
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _s_std@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	x4, [x23]
	mov	w1, #0
	bl	_v4l2_device_call_all
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_STD_525_60,8,3            ; @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
