	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3d12_update_viewport
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3d12_update_viewport:                 ## @d3d12_update_viewport
	.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	%rdi, %rbx
	addq	$8, %rdi
	movl	120(%rbx), %edx
	callq	_video_driver_update_viewport
	movq	24(%rbx), %rax
	movq	%rax, 104(%rbx)
	movq	16(%rbx), %rcx
	movq	%rcx, 96(%rbx)
	movss	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movss	12(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm1, 80(%rbx)
	movss	%xmm0, 84(%rbx)
	cvtsi2ss	%rax, %xmm2
	movl	$1065353216, 88(%rbx)           ## imm = 0x3F800000
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rax
	xorps	%xmm2, %xmm2
	cvtsi2ss	%rcx, %xmm3
	movups	%xmm2, 64(%rbx)
	addss	%xmm0, %xmm3
	cvttss2si	%xmm3, %rcx
	movq	%rax, 56(%rbx)
	movq	%rcx, 48(%rbx)
	cmpq	$0, 112(%rbx)
	je	LBB0_4
## %bb.1:
	movss	32(%rbx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jne	LBB0_3
	jp	LBB0_3
## %bb.2:
	movss	36(%rbx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	jne	LBB0_3
	jnp	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	movss	%xmm1, 32(%rbx)
	movss	%xmm0, 36(%rbx)
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	divss	%xmm1, %xmm3
	movss	%xmm3, 40(%rbx)
	divss	%xmm0, %xmm2
	movss	%xmm2, 44(%rbx)
	movl	$0, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_d3d12_update_viewport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d12_update_viewport
_d3d12_update_viewport:                 ; @d3d12_update_viewport
	.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, x0
	add	x0, x0, #8
	ldr	w2, [x19, #120]
	bl	_video_driver_update_viewport
	ldr	d0, [x19, #8]
	str	d0, [x19, #80]
	mov	w8, #1065353216
	str	w8, [x19, #88]
	rev64.2s	v1, v0
	stp	xzr, xzr, [x19, #64]
	ldr	q2, [x19, #16]
	str	q2, [x19, #96]
	scvtf.2d	v2, v2
	fcvtn	v2.2s, v2.2d
	fadd.2s	v1, v1, v2
	fcvtl	v1.2d, v1.2s
	fcvtzs.2d	v1, v1
	str	q1, [x19, #48]
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	s1, [x19, #32]
	fcmp	s1, s0
	b.ne	LBB0_3
; %bb.2:
	ldr	s1, [x19, #36]
	mov	s2, v0[1]
	fcmp	s1, s2
	b.eq	LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	fmov.2s	v1, #1.00000000
	fdiv.2s	v1, v1, v0
	stp	d0, d1, [x19, #32]
	str	wzr, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_d3d12_update_viewport
.subsections_via_symbols
