	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_tmds_calc_divider
_sun4i_tmds_calc_divider:               ## @sun4i_tmds_calc_divider
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	movl	$1, %eax
	cmovnel	%edx, %eax
	addl	$16, %edx
	cmpl	%edx, %eax
	jge	LBB0_1
## %bb.2:
	movq	%rsi, %r9
	movslq	%eax, %rbx
	movslq	%edx, %r14
	xorl	%r15d, %r15d
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r10d
	movl	%ebx, %r11d
	movq	%rax, %r15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r9, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rax
	xorl	%edx, %edx
	divq	%rbx
	cmpq	%rdi, %rax
	jbe	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rdi, %rax
	ja	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rdx
	subq	%rax, %rdx
	movq	%rdi, %rsi
	subq	%r15, %rsi
	cmpq	%rsi, %rdx
	jae	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r10d, %r10d
	movl	%ebx, %r11d
	movq	%rax, %r15
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	shrq	%rax
	cmpq	%rdi, %rax
	ja	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rdx
	subq	%rax, %rdx
	movq	%rdi, %rsi
	subq	%r15, %rsi
	cmpq	%rsi, %rdx
	jb	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%r11d, %r11d
	xorl	%r10d, %r10d
	xorl	%r15d, %r15d
LBB0_15:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.16:
	testq	%r8, %r8
	je	LBB0_18
## %bb.17:
	movl	%r11d, (%rcx)
	movl	%r10d, (%r8)
LBB0_18:
	movq	%r15, %rax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sun4i_tmds_calc_divider
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_tmds_calc_divider
_sun4i_tmds_calc_divider:               ; @sun4i_tmds_calc_divider
	.cfi_startproc
; %bb.0:
	cmp	w2, #0
	csinc	w11, w2, wzr, ne
	add	w12, w2, #16
	cmp	w11, w12
	b.ge	LBB0_11
; %bb.1:
	mov	x8, #0
	mov	w9, #0
	mov	w10, #0
	sxtw	x11, w11
	sxtw	x12, w12
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	mov	x10, x11
	mov	x8, x13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	cmp	x12, x11
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	udiv	x13, x1, x11
	cmp	x13, x0
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x0, x13
	sub	x15, x0, x8
	cmp	x14, x15
	b.hs	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	mov	x10, x11
	mov	x8, x13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	x13, x13, #1
	cmp	x13, x0
	b.hi	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x0, x13
	sub	x15, x0, x8
	cmp	x14, x15
	b.lo	LBB0_2
	b	LBB0_3
LBB0_11:
	mov	w10, #0
	mov	w9, #0
	mov	x8, #0
LBB0_12:
	cbz	x3, LBB0_15
; %bb.13:
	cbz	x4, LBB0_15
; %bb.14:
	str	w10, [x3]
	str	w9, [x4]
LBB0_15:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sun4i_tmds_calc_divider
.subsections_via_symbols
