	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_s_parm
_ioctl_s_parm:                          ## @ioctl_s_parm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	(%rdi), %r8
	movl	8(%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movl	12(%rsi), %eax
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movq	_DEFAULT_FPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	movl	$1, 8(%rsi)
	movl	$1, %ecx
LBB0_4:
	cltd
	idivl	%ecx
	movslq	%eax, %rcx
	movq	_MAX_FPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	jb	LBB0_6
## %bb.5:
	movq	_MIN_FPS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	jbe	LBB0_7
LBB0_6:
	movl	%eax, 12(%rsi)
	movl	$1, 8(%rsi)
LBB0_7:
	movq	8(%rsi), %rax
	movq	%rax, (%r8)
	popq	%rbp
	jmp	_tcm825x_configure              ## TAILCALL
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEFAULT_FPS,4,2                ## @DEFAULT_FPS
	.comm	_MAX_FPS,8,3                    ## @MAX_FPS
	.comm	_MIN_FPS,8,3                    ## @MIN_FPS
	.no_dead_strip	_ioctl_s_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_s_parm
_ioctl_s_parm:                          ; @ioctl_s_parm
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x0]
	ldr	w9, [x1, #8]
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w10, [x1, #12]
	cbnz	w10, LBB0_4
LBB0_3:
Lloh3:
	adrp	x9, _DEFAULT_FPS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_FPS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	mov	w9, #1
	stp	w9, w10, [x1, #8]
LBB0_4:
	sdiv	w9, w10, w9
	sxtw	x10, w9
Lloh6:
	adrp	x9, _MAX_FPS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_FPS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x10
	b.lo	LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, _MIN_FPS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIN_FPS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x10
	b.ls	LBB0_7
LBB0_6:
	mov	w10, #1
	stp	w10, w9, [x1, #8]
LBB0_7:
	ldr	x9, [x1, #8]
	str	x9, [x8]
	b	_tcm825x_configure
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEFAULT_FPS,4,2                ; @DEFAULT_FPS
	.comm	_MAX_FPS,8,3                    ; @MAX_FPS
	.comm	_MIN_FPS,8,3                    ; @MIN_FPS
	.no_dead_strip	_ioctl_s_parm
.subsections_via_symbols
