	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_bw_bounding_box
_update_bw_bounding_box:                ## @update_bw_bounding_box
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_TO_DCN21_RES_POOL
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movq	_dcn2_1_ip@GOTPCREL(%rip), %rdx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	(%rbx), %ecx
	movq	_dcn2_1_soc@GOTPCREL(%rip), %r8
	movl	%ecx, 16(%r8)
	movq	$0, (%r8)
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	8(%r8), %rsi
	movq	16(%rbx), %rdi
	leal	-1(%rcx), %r9d
	addq	$16, %rsi
	addq	$12, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -16(%rsi)
	movl	(%rdi), %eax
	movl	%eax, (%rsi)
	movl	-4(%rdi), %eax
	movl	%eax, -4(%rsi)
	movl	-8(%rdi), %eax
	movl	%eax, -8(%rsi)
	movl	-12(%rdi), %eax
	shll	$4, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	movl	%eax, -12(%rsi)
	incq	%rbx
	addq	$20, %rsi
	addq	$16, %rdi
	cmpq	%rbx, %rcx
	jne	LBB0_2
## %bb.3:
	incq	%r9
	movq	%r9, (%r8)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dcn2_1_ip,8,2                  ## @dcn2_1_ip
	.comm	_dcn2_1_soc,24,3                ## @dcn2_1_soc
	.no_dead_strip	_update_bw_bounding_box
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_bw_bounding_box
_update_bw_bounding_box:                ; @update_bw_bounding_box
	.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
	ldr	w0, [x0]
	bl	_TO_DCN21_RES_POOL
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _dcn2_1_ip@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dcn2_1_ip@GOTPAGEOFF]
	ldr	w10, [x0]
	stp	w10, w8, [x9]
	ldr	w9, [x19]
Lloh2:
	adrp	x8, _dcn2_1_soc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dcn2_1_soc@GOTPAGEOFF]
	str	w9, [x8, #16]
	str	xzr, [x8]
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x13, [x8, #8]
	ldr	x11, [x19, #16]
	sub	w12, w9, #1
	add	x13, x13, #8
	mov	w14, #19923
	movk	w14, #4194, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w10, [x13, #-8]
	ldr	w15, [x11, #12]
	str	w15, [x13, #8]
	ldur	d0, [x11, #4]
	str	d0, [x13]
	ldr	w15, [x11], #16
	lsl	w15, w15, #4
	smull	x15, w15, w14
	lsr	x16, x15, #63
	asr	x15, x15, #38
	add	w15, w15, w16
	stur	w15, [x13, #-4]
	add	x10, x10, #1
	add	x13, x13, #20
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.3:
	add	x9, x12, #1
	str	x9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dcn2_1_ip,8,2                  ; @dcn2_1_ip
	.comm	_dcn2_1_soc,24,3                ; @dcn2_1_soc
	.no_dead_strip	_update_bw_bounding_box
.subsections_via_symbols
