	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avivo_get_post_div
_avivo_get_post_div:                    ## @avivo_get_post_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_RADEON_PLL_USE_POST_DIV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	4(%rdi), %ecx
	jmp	LBB0_7
LBB0_2:
	movq	_RADEON_PLL_PREFER_MINM_OVER_MAXP@GOTPCREL(%rip), %rdx
	movq	_RADEON_PLL_IS_LCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	testl	%eax, %ecx
	sete	%dl
	movl	8(%rdi,%rdx,4), %eax
	cltd
	idivl	%esi
	cmpl	$1, %edx
	sbbl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	xorl	%edx, %edx
	testl	%eax, %ecx
	sete	%dl
	movl	16(%rdi,%rdx,4), %eax
	cltd
	idivl	%esi
	cmpl	$1, %edx
	sbbl	$0, %eax
LBB0_5:
	movl	24(%rdi), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_7
## %bb.6:
	movl	28(%rdi), %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
LBB0_7:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_PLL_USE_POST_DIV,4,2    ## @RADEON_PLL_USE_POST_DIV
	.comm	_RADEON_PLL_PREFER_MINM_OVER_MAXP,4,2 ## @RADEON_PLL_PREFER_MINM_OVER_MAXP
	.comm	_RADEON_PLL_IS_LCD,4,2          ## @RADEON_PLL_IS_LCD
	.no_dead_strip	_avivo_get_post_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avivo_get_post_div
_avivo_get_post_div:                    ; @avivo_get_post_div
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RADEON_PLL_USE_POST_DIV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_PLL_USE_POST_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _RADEON_PLL_PREFER_MINM_OVER_MAXP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RADEON_PLL_PREFER_MINM_OVER_MAXP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x9, _RADEON_PLL_IS_LCD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RADEON_PLL_IS_LCD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w8
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
	cmp	w9, #0
	mov	w8, #8
	mov	w9, #12
	csel	x8, x9, x8, eq
	ldr	w8, [x0, x8]
	sdiv	w9, w8, w1
	msub	w8, w9, w1, w8
	cmp	w8, #0
	cinc	w9, w9, ne
	b	LBB0_5
LBB0_4:
	cmp	w9, #0
	mov	w8, #16
	mov	w9, #20
	csel	x8, x9, x8, eq
	ldr	w8, [x0, x8]
	sdiv	w9, w8, w1
	msub	w8, w9, w1, w8
	cmp	w8, #0
	cset	w8, eq
	sub	w9, w9, w8
LBB0_5:
	ldr	w8, [x0, #24]
	cmp	w9, w8
	b.le	LBB0_7
LBB0_6:
	mov	x0, x8
	ret
LBB0_7:
	ldr	w8, [x0, #28]
	cmp	w9, w8
	csel	w0, w9, w8, gt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_PLL_USE_POST_DIV,4,2    ; @RADEON_PLL_USE_POST_DIV
	.comm	_RADEON_PLL_PREFER_MINM_OVER_MAXP,4,2 ; @RADEON_PLL_PREFER_MINM_OVER_MAXP
	.comm	_RADEON_PLL_IS_LCD,4,2          ; @RADEON_PLL_IS_LCD
	.no_dead_strip	_avivo_get_post_div
.subsections_via_symbols
