	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml8726_uart_divisor
_aml8726_uart_divisor:                  ## @aml8726_uart_divisor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	xorl	%ecx, %ecx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	leal	(%rsi,%rdi,2), %eax
	leal	(%rsi,%rsi), %r8d
	cltd
	idivl	%r8d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r8d
	movl	%edi, %eax
	cltd
	idivl	%r8d
	subl	%esi, %eax
	imull	$2000, %eax, %eax               ## imm = 0x7D0
	cltd
	idivl	%esi
	addl	$-61, %eax
	xorl	%ecx, %ecx
	cmpl	$-122, %eax
	cmovael	%r8d, %ecx
LBB0_3:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aml8726_uart_divisor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml8726_uart_divisor
_aml8726_uart_divisor:                  ; @aml8726_uart_divisor
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	add	w8, w1, w0, lsl #1
	lsl	w9, w1, #1
	sdiv	w8, w8, w9
	cbz	w8, LBB0_3
; %bb.2:
	sdiv	w9, w0, w8
	sub	w9, w9, w1
	mov	w10, #2000
	mul	w9, w9, w10
	sdiv	w9, w9, w1
	sub	w9, w9, #61
	cmn	w9, #122
	csel	w0, wzr, w8, lo
	ret
LBB0_3:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aml8726_uart_divisor
.subsections_via_symbols
