	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_correct_for_bounds
_ir_correct_for_bounds:                 ## @ir_correct_for_bounds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WIIUSE_ASPECT_16_9@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	movq	_WM_ASPECT_4_3_Y@GOTPCREL(%rip), %r9
	cmoveq	_WM_ASPECT_16_9_Y@GOTPCREL(%rip), %r9
	movq	_WM_ASPECT_4_3_X@GOTPCREL(%rip), %rax
	cmoveq	_WM_ASPECT_16_9_X@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	$1024, %edx                     ## imm = 0x400
	subl	%r10d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	addl	%ecx, %eax
	cvtsi2ss	%eax, %xmm1
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	ucomiss	%xmm1, %xmm0
	jb	LBB0_5
## %bb.1:
	cvtsi2ss	%r10d, %xmm2
	addss	%xmm1, %xmm2
	ucomiss	%xmm0, %xmm2
	jb	LBB0_5
## %bb.2:
	movl	(%r9), %r9d
	movl	$768, %r10d                     ## imm = 0x300
	subl	%r9d, %r10d
	movl	%r10d, %edx
	shrl	$31, %edx
	addl	%r10d, %edx
	sarl	%edx
	addl	%r8d, %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	movss	(%rsi), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jb	LBB0_5
## %bb.3:
	cvtsi2ss	%r9d, %xmm3
	addss	%xmm1, %xmm3
	ucomiss	%xmm2, %xmm3
	jb	LBB0_5
## %bb.4:
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	subss	%xmm1, %xmm0
	movss	%xmm0, (%rdi)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r8d, %xmm0
	movss	(%rsi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, (%rsi)
	movl	$1, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIUSE_ASPECT_16_9,4,2         ## @WIIUSE_ASPECT_16_9
	.comm	_WM_ASPECT_16_9_X,4,2           ## @WM_ASPECT_16_9_X
	.comm	_WM_ASPECT_16_9_Y,4,2           ## @WM_ASPECT_16_9_Y
	.comm	_WM_ASPECT_4_3_X,4,2            ## @WM_ASPECT_4_3_X
	.comm	_WM_ASPECT_4_3_Y,4,2            ## @WM_ASPECT_4_3_Y
	.no_dead_strip	_ir_correct_for_bounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_correct_for_bounds
_ir_correct_for_bounds:                 ; @ir_correct_for_bounds
	.cfi_startproc
; %bb.0:
	mov	w10, #1024
Lloh0:
	adrp	x8, _WIIUSE_ASPECT_16_9@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIIUSE_ASPECT_16_9@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WM_ASPECT_16_9_Y@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WM_ASPECT_16_9_Y@GOTPAGEOFF]
	cmp	w8, w2
Lloh5:
	adrp	x8, _WM_ASPECT_4_3_Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM_ASPECT_4_3_Y@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _WM_ASPECT_16_9_X@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WM_ASPECT_16_9_X@GOTPAGEOFF]
Lloh9:
	adrp	x11, _WM_ASPECT_4_3_X@GOTPAGE
Lloh10:
	ldr	x11, [x11, _WM_ASPECT_4_3_X@GOTPAGEOFF]
	csel	x9, x9, x11, eq
	ldr	w9, [x9]
	sub	w10, w10, w9
	mov	w11, #1025
	sub	w11, w11, w9
	cmp	w10, #0
	csel	w10, w11, w10, lt
	add	w10, w3, w10, asr #1
	scvtf	s1, w10
	mov	w10, #768
	sub	w10, w10, w8
	mov	w11, #769
	sub	w11, w11, w8
	cmp	w10, #0
	csel	w10, w11, w10, lt
	ldr	s0, [x0]
	fcmp	s0, s1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	scvtf	s2, w9
	fadd	s1, s2, s1
	fcmp	s0, s1
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	add	w9, w4, w10, asr #1
	scvtf	s1, w9
	ldr	s2, [x1]
	fcmp	s2, s1
	b.ge	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	scvtf	s3, w8
	fadd	s1, s3, s1
	fcmp	s2, s1
	b.ls	LBB0_8
; %bb.7:
	mov	w0, #0
	ret
LBB0_8:
	scvtf	s1, w3
	fsub	s0, s0, s1
	str	s0, [x0]
	scvtf	s0, w4
	ldr	s1, [x1]
	fsub	s0, s1, s0
	str	s0, [x1]
	mov	w0, #1
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIUSE_ASPECT_16_9,4,2         ; @WIIUSE_ASPECT_16_9
	.comm	_WM_ASPECT_16_9_X,4,2           ; @WM_ASPECT_16_9_X
	.comm	_WM_ASPECT_16_9_Y,4,2           ; @WM_ASPECT_16_9_Y
	.comm	_WM_ASPECT_4_3_X,4,2            ; @WM_ASPECT_4_3_X
	.comm	_WM_ASPECT_4_3_Y,4,2            ; @WM_ASPECT_4_3_Y
	.no_dead_strip	_ir_correct_for_bounds
.subsections_via_symbols
