	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_g_ifparm
_ioctl_g_ifparm:                        ## @ioctl_g_ifparm
	.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
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	%rsi, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %eax
	cltd
	idivl	12(%rbx)
	movl	%eax, %ecx
	movq	_HIGH_FPS_MODE_LOWER_LIMIT@GOTPCREL(%rip), %rdx
	imull	$2457, %eax, %eax               ## imm = 0x999
	cmpl	(%rdx), %ecx
	jle	LBB0_2
## %bb.3:
	movq	_MAX_FPS@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_MAX_HALF_FPS@GOTPCREL(%rip), %rcx
LBB0_4:
	cltd
	idivl	(%rcx)
	imull	$10000, %eax, %edi              ## imm = 0x2710
	movq	_TCM825X_XCLK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	_TCM825X_XCLK_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, (%r14)
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIGH_FPS_MODE_LOWER_LIMIT,4,2  ## @HIGH_FPS_MODE_LOWER_LIMIT
	.comm	_MAX_HALF_FPS,4,2               ## @MAX_HALF_FPS
	.comm	_MAX_FPS,4,2                    ## @MAX_FPS
	.comm	_TCM825X_XCLK_MAX,8,3           ## @TCM825X_XCLK_MAX
	.comm	_TCM825X_XCLK_MIN,8,3           ## @TCM825X_XCLK_MIN
	.no_dead_strip	_ioctl_g_ifparm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_g_ifparm
_ioctl_g_ifparm:                        ; @ioctl_g_ifparm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x1
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	w8, w9, [x21, #8]
	sdiv	w8, w8, w9
Lloh0:
	adrp	x9, _HIGH_FPS_MODE_LOWER_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HIGH_FPS_MODE_LOWER_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #2457
Lloh3:
	adrp	x11, _MAX_FPS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MAX_FPS@GOTPAGEOFF]
	mul	w10, w8, w10
Lloh5:
	adrp	x12, _MAX_HALF_FPS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MAX_HALF_FPS@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x12, gt
	ldr	w8, [x8]
	sdiv	w8, w10, w8
	mov	w9, #10000
	mul	w0, w8, w9
Lloh7:
	adrp	x8, _TCM825X_XCLK_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TCM825X_XCLK_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_min
Lloh10:
	adrp	x8, _TCM825X_XCLK_MIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCM825X_XCLK_MIN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_max
	str	w0, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIGH_FPS_MODE_LOWER_LIMIT,4,2  ; @HIGH_FPS_MODE_LOWER_LIMIT
	.comm	_MAX_HALF_FPS,4,2               ; @MAX_HALF_FPS
	.comm	_MAX_FPS,4,2                    ; @MAX_FPS
	.comm	_TCM825X_XCLK_MAX,8,3           ; @TCM825X_XCLK_MAX
	.comm	_TCM825X_XCLK_MIN,8,3           ; @TCM825X_XCLK_MIN
	.no_dead_strip	_ioctl_g_ifparm
.subsections_via_symbols
