	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_setup
_buffer_setup:                          ## @buffer_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %eax
	imull	(%rdi), %eax
	movq	8(%rdi), %rcx
	imull	(%rcx), %eax
	addl	$7, %eax
	sarl	$3, %eax
	movl	%eax, (%rdx)
	movl	(%rsi), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CX231XX_DEF_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
LBB0_2:
	movq	_CX231XX_MIN_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_4
## %bb.3:
	movl	%ecx, (%rsi)
LBB0_4:
	callq	_cx231xx_enable_analog_tuner
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX231XX_DEF_BUF,4,2            ## @CX231XX_DEF_BUF
	.comm	_CX231XX_MIN_BUF,4,2            ## @CX231XX_MIN_BUF
	.no_dead_strip	_buffer_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_setup
_buffer_setup:                          ; @buffer_setup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	orr	w10, wzr, #0x7
	madd	w8, w8, w9, w10
	asr	w8, w8, #3
	str	w8, [x2]
	ldr	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CX231XX_DEF_BUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX231XX_DEF_BUF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
LBB0_2:
Lloh3:
	adrp	x9, _CX231XX_MIN_BUF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CX231XX_MIN_BUF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.3:
	str	w9, [x1]
LBB0_4:
	bl	_cx231xx_enable_analog_tuner
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CX231XX_DEF_BUF,4,2            ; @CX231XX_DEF_BUF
	.comm	_CX231XX_MIN_BUF,4,2            ; @CX231XX_MIN_BUF
	.no_dead_strip	_buffer_setup
.subsections_via_symbols
