	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp2DrawMap
_Vdp2DrawMap:                           ## @Vdp2DrawMap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %eax
	shll	$3, %eax
	movl	%eax, 4(%rdi)
	movq	_vdp2width@GOTPCREL(%rip), %rax
	cvtsi2ssq	(%rax), %xmm0
	divss	16(%rdi), %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 12(%rdi)
	movq	_vdp2height@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax), %xmm0
	divss	24(%rdi), %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 20(%rdi)
	movl	28(%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movl	$-1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%esi, %r15d
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	32(%rbx), %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	testl	%esi, %esi
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r14d
	movl	28(%rbx), %esi
	cmpl	%esi, %r14d
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, 32(%rbx)
	imull	%r15d, %esi
	addl	%r14d, %esi
	movq	%rbx, %rdi
	callq	*40(%rbx)
	cmpl	%r12d, 36(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_Vdp2DrawPlane
	movl	36(%rbx), %r12d
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp2width,8,3                  ## @vdp2width
	.comm	_vdp2height,8,3                 ## @vdp2height
	.no_dead_strip	_Vdp2DrawMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp2DrawMap
_Vdp2DrawMap:                           ; @Vdp2DrawMap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _vdp2width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdp2width@GOTPAGEOFF]
	ldr	w20, [x0]
Lloh2:
	ldr	x8, [x8]
	scvtf	s0, x8
	ldr	w8, [x0, #8]
	lsl	w8, w8, #3
	str	w8, [x0, #4]
	ldr	s1, [x0, #16]
	fdiv	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x0, #12]
Lloh3:
	adrp	x8, _vdp2height@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vdp2height@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	scvtf	s0, x8
	ldr	s1, [x0, #24]
	fdiv	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x0, #20]
	ldr	w8, [x0, #28]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	mov	w22, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w23, [x19, #32]
	str	w20, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #1
	ldr	w8, [x19, #28]
	cmp	w24, w8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w23, [x19, #32]
	ldr	x9, [x19, #40]
	madd	w1, w21, w8, w24
	mov	x0, x19
	blr	x9
	ldr	w8, [x19, #36]
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_Vdp2DrawPlane
	ldr	w22, [x19, #36]
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp2width,8,3                  ; @vdp2width
	.comm	_vdp2height,8,3                 ; @vdp2height
	.no_dead_strip	_Vdp2DrawMap
.subsections_via_symbols
