	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_pll_configure
_dvb_pll_configure:                     ## @dvb_pll_configure
	.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, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%r13), %rdx
	jl	LBB0_21
## %bb.2:
	cmpq	8(%r13), %rdx
	jg	LBB0_21
LBB0_3:
	movl	16(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_4
## %bb.5:
	movq	24(%r13), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax), %rdx
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	addq	$24, %rax
	cmpq	%rbx, %r8
	jne	LBB0_6
## %bb.8:
	movl	%r8d, %ebx
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_9:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movl	32(%r13), %esi
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_printk
	movl	16(%r13), %r8d
LBB0_11:
	cmpl	%r8d, %ebx
	jne	LBB0_13
## %bb.12:
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_13:
	movslq	20(%r13), %rdx
	addq	(%r14), %rdx
	movq	24(%r13), %rcx
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %rdi
	movslq	8(%rcx,%rdi,8), %rsi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_16:
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, (%r12)
	movzbl	%bl, %eax
	movl	%eax, 4(%r12)
	movl	12(%rcx,%rdi,8), %eax
	movl	%eax, 8(%r12)
	movl	16(%rcx,%rdi,8), %eax
	movl	%eax, 12(%r12)
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	*%rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movl	32(%r13), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %r8d
	movl	8(%r12), %r9d
	movl	12(%r12), %eax
	movl	%eax, (%rsp)
	movq	%rdi, %r14
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printk
	movq	%r14, %rdi
LBB0_20:
	movq	24(%r13), %rax
	addq	$20, %r13
	imull	8(%rax,%rdi,8), %ebx
	movq	%r13, %rax
LBB0_21:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pll: %s: freq=%d | i=%d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pll: %s: div=%d | buf=0x%02x,0x%02x,0x%02x,0x%02x\n"

	.no_dead_strip	_dvb_pll_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_pll_configure
_dvb_pll_configure:                     ; @dvb_pll_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldr	x2, [x2]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	cmp	x2, x8
	b.lt	LBB0_12
; %bb.2:
	ldr	x8, [x23, #8]
	cmp	x2, x8
	b.gt	LBB0_12
LBB0_3:
	ldr	w4, [x23, #16]
	cmp	w4, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x22, #0
	ldr	x8, [x23, #24]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x2, x9
	b.le	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	add	x8, x8, #24
	cmp	x4, x22
	b.ne	LBB0_5
; %bb.7:
	mov	x22, x4
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
Lloh0:
	adrp	x25, _debug@GOTPAGE
Lloh1:
	ldr	x25, [x25, _debug@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w1, [x23, #32]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x22
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_printk
	ldr	w4, [x23, #16]
LBB0_11:
	cmp	w22, w4
	b.ne	LBB0_13
LBB0_12:
	mov	w8, #0
Lloh4:
	adrp	x24, _EINVAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
	ldr	x8, [x20]
	mov	x24, x23
	ldrsw	x9, [x24, #20]!
	add	x8, x8, x9
	ldur	x9, [x24, #4]
	mov	w26, w22
	mov	w10, #24
	umaddl	x9, w22, w10, x9
	ldrsw	x10, [x9, #8]
	cmp	w10, #0
	cinc	w11, w10, lt
	asr	w11, w11, #1
	add	x8, x8, w11, sxtw
	sdiv	x22, x8, x10
	asr	w8, w22, #8
	and	w10, w22, #0xff
	stp	w8, w10, [x19]
	ldr	w8, [x9, #12]
	str	w8, [x19, #8]
	ldr	w8, [x9, #16]
	str	w8, [x19, #12]
	ldur	x8, [x24, #20]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	blr	x8
LBB0_15:
	ldr	x8, [x25]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w1, [x23, #32]
	ldp	w3, w4, [x19]
	ldp	w8, w9, [x19, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	x8, x9, [sp]
	mov	x2, x22
	bl	_printk
LBB0_17:
	ldr	x8, [x23, #24]
	mov	w9, #24
	madd	x8, x26, x9, x8
	ldr	w8, [x8, #8]
	mul	w8, w8, w22
LBB0_18:
	ldr	w9, [x24]
	sub	w0, w8, w9
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pll: %s: freq=%d | i=%d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pll: %s: div=%d | buf=0x%02x,0x%02x,0x%02x,0x%02x\n"

	.no_dead_strip	_dvb_pll_configure
.subsections_via_symbols
