	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_dc_scaling_info
_fill_dc_scaling_info:                  ## @fill_dc_scaling_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movswl	2(%r15), %eax
	movl	%eax, (%rbx)
	movswl	6(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r15), %eax
	movl	%eax, %esi
	sarl	$16, %esi
	movl	%esi, 8(%rbx)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movl	12(%r15), %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movl	%ecx, 12(%rbx)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jbe	LBB0_13
## %bb.3:
	movl	36(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	leaq	16(%rbx), %rdx
	movq	%rax, (%rdx)
	movq	24(%r15), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.5:
	movq	%r8, 24(%rbx)
	movq	(%rdx), %rdi
	movq	%rdi, 40(%rbx)
	movq	8(%rdx), %rdi
	movq	%rdi, 48(%rbx)
	movq	16(%rdx), %rdx
	movq	%rdx, 56(%rbx)
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	movslq	%esi, %rbx
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	cqto
	idivq	%rbx
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	addl	$-16001, %eax                   ## imm = 0xC17F
	cmpl	$-15752, %eax                   ## imm = 0xC278
	jbe	LBB0_13
## %bb.9:
	imulq	$1000, %r8, %rax                ## imm = 0x3E8
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	cqto
	idivq	%rsi
	jmp	LBB0_12
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	addl	$-16001, %eax                   ## imm = 0xC17F
	xorl	%r14d, %r14d
	cmpl	$-15752, %eax                   ## imm = 0xC278
	ja	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fill_dc_scaling_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_dc_scaling_info
_fill_dc_scaling_info:                  ; @fill_dc_scaling_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	d0, [x20]
	sshr.2s	v0, v0, #16
	str	d0, [x19]
	ldr	w8, [x20, #8]
	asr	w9, w8, #16
	str	w9, [x19, #8]
	lsr	w8, w8, #16
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w10, [x20, #12]
	asr	w8, w10, #16
	str	w8, [x19, #12]
	lsr	w10, w10, #16
	cbz	w10, LBB0_6
; %bb.2:
	ldr	d0, [x20, #32]
	str	d0, [x19, #32]
	ldr	x11, [x20, #16]
	cbz	x11, LBB0_6
; %bb.3:
	add	x12, x19, #16
	str	x11, [x12]
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_6
; %bb.4:
	str	x10, [x19, #24]
	ldr	q0, [x12]
	stur	q0, [x19, #40]
	ldr	x12, [x12, #16]
	str	x12, [x19, #56]
	mov	w12, #1000
	mul	x11, x11, x12
	sxtw	x9, w9
	sdiv	x12, x11, x9
	mov	w9, #-16001
	mov	w11, #-15752
	add	w12, w12, w9
	cmp	w12, w11
	b.ls	LBB0_6
; %bb.5:
	mov	w12, #1000
	mul	x10, x10, x12
	sxtw	x8, w8
	sdiv	x8, x10, x8
	add	w8, w8, w9
	cmp	w8, w11
	b.hi	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fill_dc_scaling_info
.subsections_via_symbols
