	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_calculate_at              ## -- Begin function r600_calculate_at
	.p2align	4, 0x90
_r600_calculate_at:                     ## @r600_calculate_at
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%edx, %ecx
	jg	LBB0_3
## %bb.1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	imull	$100, %edx, %eax
	cltd
	idivl	%ecx
	addl	$-100, %eax
	imull	%edi, %eax
	imull	$100, %esi, %ecx
	addl	%eax, %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	sarq	$37, %rdx
	shrq	$63, %rax
	leal	(%rdx,%rax), %esi
	addl	$10000, %esi                    ## imm = 0x2710
	movl	%ecx, %eax
	cltd
	idivl	%esi
	addl	$5, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, %ecx
	imull	%edi, %ecx
	addl	$5000, %ecx                     ## imm = 0x1388
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%edi, %eax
	subl	%ecx, %edi
	movl	%edi, (%r9)
	subl	%ecx, %eax
	movl	%eax, (%r8)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_calculate_at              ; -- Begin function r600_calculate_at
	.p2align	2
_r600_calculate_at:                     ; @r600_calculate_at
	.cfi_startproc
; %bb.0:
	cmp	w3, w2
	b.gt	LBB0_4
; %bb.1:
	cbz	w2, LBB0_4
; %bb.2:
	cbz	w3, LBB0_4
; %bb.3:
	mov	w9, #100
	mul	w10, w2, w9
	sdiv	w10, w10, w3
	sub	w10, w10, #100
	mul	w10, w10, w0
	madd	w9, w1, w9, w10
	mov	w11, #1000
	mul	w9, w9, w11
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #37
	mov	w12, #10000
	add	w10, w10, w11
	add	w10, w10, w12
	sdiv	w9, w9, w10
	add	w9, w9, #5
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	mov	w11, #5000
	add	w9, w9, w10
	add	w10, w9, w0
	madd	w9, w9, w0, w11
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #44
	add	w9, w9, w11
	sub	w11, w0, w9
	str	w11, [x5]
	sub	w9, w10, w9
	str	w9, [x4]
	mov	w0, #0
	ret
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
