	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_viewport
_program_viewport:                      ## @program_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	%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
	movq	%rdx, %r15
	movq	(%rdi), %r14
	cmpl	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 4(%rsi)
	je	LBB0_3
## %bb.2:
	movq	_mmSCLV_VIEWPORT_START@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	12(%rbx), %esi
	movq	_SCLV_VIEWPORT_START@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_VIEWPORT_X_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	8(%rbx), %esi
	movl	(%r13), %edx
	movq	_VIEWPORT_Y_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_mmSCLV_VIEWPORT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%rbx), %esi
	movq	_SCLV_VIEWPORT_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_VIEWPORT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_VIEWPORT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
LBB0_3:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.4:
	cmpl	$0, 4(%r15)
	je	LBB0_5
## %bb.6:
	movq	_mmSCLV_VIEWPORT_START_C@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	12(%r15), %esi
	movq	_SCLV_VIEWPORT_START_C@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_VIEWPORT_X_START_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	8(%r15), %esi
	movl	(%rbx), %edx
	movq	_VIEWPORT_Y_START_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movq	_mmSCLV_VIEWPORT_SIZE_C@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%r15), %esi
	movq	_SCLV_VIEWPORT_SIZE_C@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_VIEWPORT_HEIGHT_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	_VIEWPORT_WIDTH_C@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_set_reg_field_value
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_write_reg                   ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSCLV_VIEWPORT_START,8,3      ## @mmSCLV_VIEWPORT_START
	.comm	_SCLV_VIEWPORT_START,4,2        ## @SCLV_VIEWPORT_START
	.comm	_VIEWPORT_X_START,4,2           ## @VIEWPORT_X_START
	.comm	_VIEWPORT_Y_START,4,2           ## @VIEWPORT_Y_START
	.comm	_mmSCLV_VIEWPORT_SIZE,8,3       ## @mmSCLV_VIEWPORT_SIZE
	.comm	_SCLV_VIEWPORT_SIZE,4,2         ## @SCLV_VIEWPORT_SIZE
	.comm	_VIEWPORT_HEIGHT,4,2            ## @VIEWPORT_HEIGHT
	.comm	_VIEWPORT_WIDTH,4,2             ## @VIEWPORT_WIDTH
	.comm	_mmSCLV_VIEWPORT_START_C,8,3    ## @mmSCLV_VIEWPORT_START_C
	.comm	_SCLV_VIEWPORT_START_C,4,2      ## @SCLV_VIEWPORT_START_C
	.comm	_VIEWPORT_X_START_C,4,2         ## @VIEWPORT_X_START_C
	.comm	_VIEWPORT_Y_START_C,4,2         ## @VIEWPORT_Y_START_C
	.comm	_mmSCLV_VIEWPORT_SIZE_C,8,3     ## @mmSCLV_VIEWPORT_SIZE_C
	.comm	_SCLV_VIEWPORT_SIZE_C,4,2       ## @SCLV_VIEWPORT_SIZE_C
	.comm	_VIEWPORT_HEIGHT_C,4,2          ## @VIEWPORT_HEIGHT_C
	.comm	_VIEWPORT_WIDTH_C,4,2           ## @VIEWPORT_WIDTH_C
	.no_dead_strip	_program_viewport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_viewport
_program_viewport:                      ; @program_viewport
	.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
	mov	x20, x2
	ldr	x19, [x0]
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #4]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _mmSCLV_VIEWPORT_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSCLV_VIEWPORT_START@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w1, [x21, #12]
Lloh3:
	adrp	x23, _SCLV_VIEWPORT_START@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SCLV_VIEWPORT_START@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _VIEWPORT_X_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VIEWPORT_X_START@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21, #8]
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _VIEWPORT_Y_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIEWPORT_Y_START@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
Lloh11:
	adrp	x8, _mmSCLV_VIEWPORT_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmSCLV_VIEWPORT_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	ldr	w1, [x21, #4]
Lloh14:
	adrp	x23, _SCLV_VIEWPORT_SIZE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SCLV_VIEWPORT_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh16:
	adrp	x8, _VIEWPORT_HEIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VIEWPORT_HEIGHT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x21]
	ldr	w2, [x23]
Lloh19:
	adrp	x8, _VIEWPORT_WIDTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VIEWPORT_WIDTH@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_dm_write_reg
LBB0_3:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _mmSCLV_VIEWPORT_START_C@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mmSCLV_VIEWPORT_START_C@GOTPAGEOFF]
Lloh24:
	ldr	x21, [x8]
	ldr	w1, [x20, #12]
Lloh25:
	adrp	x22, _SCLV_VIEWPORT_START_C@GOTPAGE
Lloh26:
	ldr	x22, [x22, _SCLV_VIEWPORT_START_C@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh27:
	adrp	x8, _VIEWPORT_X_START_C@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIEWPORT_X_START_C@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x20, #8]
	ldr	w2, [x22]
Lloh30:
	adrp	x8, _VIEWPORT_Y_START_C@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VIEWPORT_Y_START_C@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_dm_write_reg
Lloh33:
	adrp	x8, _mmSCLV_VIEWPORT_SIZE_C@GOTPAGE
Lloh34:
	ldr	x8, [x8, _mmSCLV_VIEWPORT_SIZE_C@GOTPAGEOFF]
Lloh35:
	ldr	x21, [x8]
	ldr	w1, [x20, #4]
Lloh36:
	adrp	x22, _SCLV_VIEWPORT_SIZE_C@GOTPAGE
Lloh37:
	ldr	x22, [x22, _SCLV_VIEWPORT_SIZE_C@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh38:
	adrp	x8, _VIEWPORT_HEIGHT_C@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VIEWPORT_HEIGHT_C@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	ldr	w1, [x20]
	ldr	w2, [x22]
Lloh41:
	adrp	x8, _VIEWPORT_WIDTH_C@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VIEWPORT_WIDTH_C@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, #0
	bl	_set_reg_field_value
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	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
	b	_dm_write_reg
LBB0_6:
	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	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSCLV_VIEWPORT_START,8,3      ; @mmSCLV_VIEWPORT_START
	.comm	_SCLV_VIEWPORT_START,4,2        ; @SCLV_VIEWPORT_START
	.comm	_VIEWPORT_X_START,4,2           ; @VIEWPORT_X_START
	.comm	_VIEWPORT_Y_START,4,2           ; @VIEWPORT_Y_START
	.comm	_mmSCLV_VIEWPORT_SIZE,8,3       ; @mmSCLV_VIEWPORT_SIZE
	.comm	_SCLV_VIEWPORT_SIZE,4,2         ; @SCLV_VIEWPORT_SIZE
	.comm	_VIEWPORT_HEIGHT,4,2            ; @VIEWPORT_HEIGHT
	.comm	_VIEWPORT_WIDTH,4,2             ; @VIEWPORT_WIDTH
	.comm	_mmSCLV_VIEWPORT_START_C,8,3    ; @mmSCLV_VIEWPORT_START_C
	.comm	_SCLV_VIEWPORT_START_C,4,2      ; @SCLV_VIEWPORT_START_C
	.comm	_VIEWPORT_X_START_C,4,2         ; @VIEWPORT_X_START_C
	.comm	_VIEWPORT_Y_START_C,4,2         ; @VIEWPORT_Y_START_C
	.comm	_mmSCLV_VIEWPORT_SIZE_C,8,3     ; @mmSCLV_VIEWPORT_SIZE_C
	.comm	_SCLV_VIEWPORT_SIZE_C,4,2       ; @SCLV_VIEWPORT_SIZE_C
	.comm	_VIEWPORT_HEIGHT_C,4,2          ; @VIEWPORT_HEIGHT_C
	.comm	_VIEWPORT_WIDTH_C,4,2           ; @VIEWPORT_WIDTH_C
	.no_dead_strip	_program_viewport
.subsections_via_symbols
