	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v011_s_config
_mt9v011_s_config:                      ## @mt9v011_s_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_to_mt9v011
	movq	%rax, %r15
	movq	_debug@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	(%r12), %esi
	movl	(%rbx), %eax
	imulq	$1125899907, %rax, %r8          ## imm = 0x431BDE83
	shrq	$50, %r8
	imulq	$274877907, %rax, %r9           ## imm = 0x10624DD3
	shrq	$38, %r9
	imulq	$274877907, %r9, %rax           ## imm = 0x10624DD3
	shrq	$38, %rax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r9d
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_v4l2_dbg
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_config called\n"

L_.str.1:                               ## @.str.1
	.asciz	"xtal set to %d.%03d MHz\n"

	.no_dead_strip	_mt9v011_s_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v011_s_config
_mt9v011_s_config:                      ; @mt9v011_s_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x0
	bl	_to_mt9v011
	mov	x21, x0
Lloh0:
	adrp	x22, _debug@GOTPAGE
Lloh1:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	w8, [x21]
	ldr	w1, [x22]
	ldr	w8, [x20]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #50
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x8, x8, x10
	lsr	x8, x8, #38
	mul	x10, x8, x10
	lsr	x10, x10, #38
	mov	w11, #1000
	msub	w8, w10, w11, w8
	stp	x9, x8, [sp]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_config called\n"

l_.str.1:                               ; @.str.1
	.asciz	"xtal set to %d.%03d MHz\n"

	.no_dead_strip	_mt9v011_s_config
.subsections_via_symbols
