	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_video_drvdata
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	movq	24(%rax), %rcx
	movq	_HDPVR_COMPONENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	(%rax), %rcx
	movq	_STATUS_IDLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	sete	%dl
	movl	$576, %ecx                      ## imm = 0x240
	movl	$480, %esi                      ## imm = 0x1E0
	cmovel	%ecx, %esi
	movl	%r14d, 8(%rax)
	movl	$720, 12(%rax)                  ## imm = 0x2D0
	movl	%esi, 16(%rax)
	movq	_CTRL_VIDEO_STD_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdpvr_config_call              ## TAILCALL
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDPVR_COMPONENT,8,3            ## @HDPVR_COMPONENT
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_STATUS_IDLE,8,3                ## @STATUS_IDLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_CTRL_VIDEO_STD_TYPE,4,2        ## @CTRL_VIDEO_STD_TYPE
	.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	x19, x2
	mov	x20, x1
	bl	_video_drvdata
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _HDPVR_COMPONENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDPVR_COMPONENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ENODATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _STATUS_IDLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STATUS_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w2, eq
	mov	w8, #480
	mov	w9, #576
	csel	w8, w9, w8, eq
	mov	w9, #720
	stp	w19, w9, [x0, #8]
	str	w8, [x0, #16]
Lloh11:
	adrp	x8, _CTRL_VIDEO_STD_TYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CTRL_VIDEO_STD_TYPE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdpvr_config_call
LBB0_5:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HDPVR_COMPONENT,8,3            ; @HDPVR_COMPONENT
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_STATUS_IDLE,8,3                ; @STATUS_IDLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_CTRL_VIDEO_STD_TYPE,4,2        ; @CTRL_VIDEO_STD_TYPE
	.no_dead_strip	_vidioc_s_std
.subsections_via_symbols
