	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_grph_pixel_format
_program_grph_pixel_format:             ## @program_grph_pixel_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	leal	-135(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	setb	%cl
	addl	%ecx, %ecx
	movq	_GRPH_SWAP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_RED_CROSSBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GRPH_BLUE_CROSSBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%ecx, %r9d
	callq	_REG_SET_2
	addl	$-128, %ebx
	cmpl	$10, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	jmpq	*%rcx
LBB0_5:
	movl	$1, %r8d
	movl	$2, %edx
	jmp	LBB0_10
LBB0_4:
	movl	$2, %edx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DC_ERR
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_3:
	movl	$1, %edx
	movl	$1, %r8d
	jmp	LBB0_10
LBB0_2:
	movl	$1, %edx
LBB0_9:
	xorl	%r8d, %r8d
	jmp	LBB0_10
LBB0_6:
	movl	$1, %eax
LBB0_7:
	movl	$3, %edx
	xorl	%r8d, %r8d
	movl	%eax, %r14d
LBB0_10:
	movq	_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRPH_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_REG_UPDATE_2
	movq	_PRESCALE_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_PRESCALE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRPH_PRESCALE_R_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GRPH_PRESCALE_G_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GRPH_PRESCALE_B_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r14d, %edx
	movl	%r14d, %r8d
	pushq	%r14
	pushq	%rax
	pushq	%r14
	callq	_REG_UPDATE_4
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_GRPH_SWAP_CNTL,4,2             ## @GRPH_SWAP_CNTL
	.comm	_GRPH_RED_CROSSBAR,4,2          ## @GRPH_RED_CROSSBAR
	.comm	_GRPH_BLUE_CROSSBAR,4,2         ## @GRPH_BLUE_CROSSBAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported grph pixel format"

	.comm	_GRPH_CONTROL,4,2               ## @GRPH_CONTROL
	.comm	_GRPH_DEPTH,4,2                 ## @GRPH_DEPTH
	.comm	_GRPH_FORMAT,4,2                ## @GRPH_FORMAT
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ## @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_SELECT,4,2       ## @GRPH_PRESCALE_SELECT
	.comm	_GRPH_PRESCALE_R_SIGN,4,2       ## @GRPH_PRESCALE_R_SIGN
	.comm	_GRPH_PRESCALE_G_SIGN,4,2       ## @GRPH_PRESCALE_G_SIGN
	.comm	_GRPH_PRESCALE_B_SIGN,4,2       ## @GRPH_PRESCALE_B_SIGN
	.no_dead_strip	_program_grph_pixel_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_grph_pixel_format
_program_grph_pixel_format:             ; @program_grph_pixel_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	sub	w8, w1, #135
	cmp	w8, #4
	cset	w8, lo
	lsl	w3, w8, #1
Lloh0:
	adrp	x8, _GRPH_SWAP_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRPH_SWAP_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GRPH_RED_CROSSBAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRPH_RED_CROSSBAR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _GRPH_BLUE_CROSSBAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRPH_BLUE_CROSSBAR@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x5, x3
	bl	_REG_SET_2
	sub	w9, w19, #128
	cmp	w9, #10
	b.hi	LBB0_4
; %bb.1:
	mov	w8, #0
	mov	w2, #0
	mov	w4, #0
	mov	w19, #0
Lloh9:
	adrp	x10, lJTI0_0@PAGE
Lloh10:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w19, #0
	mov	w4, #1
	mov	w2, #2
	b	LBB0_9
LBB0_3:
	mov	w4, #0
	mov	w19, #0
	mov	w2, #2
	b	LBB0_9
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DC_ERR
	mov	w2, #0
	mov	w4, #0
	mov	w19, #0
	b	LBB0_9
LBB0_5:
	mov	w19, #0
	mov	w2, #1
	mov	w4, #1
	b	LBB0_9
LBB0_6:
	mov	w4, #0
	mov	w19, #0
	mov	w2, #1
	b	LBB0_9
LBB0_7:
	mov	w8, #1
LBB0_8:
	mov	w4, #0
	mov	w2, #3
	mov	x19, x8
LBB0_9:
Lloh13:
	adrp	x8, _GRPH_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRPH_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _GRPH_DEPTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRPH_DEPTH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _GRPH_FORMAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GRPH_FORMAT@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_REG_UPDATE_2
Lloh22:
	adrp	x8, _PRESCALE_GRPH_CONTROL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PRESCALE_GRPH_CONTROL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _GRPH_PRESCALE_SELECT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GRPH_PRESCALE_SELECT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _GRPH_PRESCALE_R_SIGN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GRPH_PRESCALE_R_SIGN@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _GRPH_PRESCALE_G_SIGN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GRPH_PRESCALE_G_SIGN@GOTPAGEOFF]
Lloh33:
	ldr	w5, [x8]
Lloh34:
	adrp	x8, _GRPH_PRESCALE_B_SIGN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GRPH_PRESCALE_B_SIGN@GOTPAGEOFF]
Lloh36:
	ldr	w7, [x8]
	str	w19, [sp]
	mov	x2, x19
	mov	x4, x19
	mov	x6, x19
	bl	_REG_UPDATE_4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_GRPH_SWAP_CNTL,4,2             ; @GRPH_SWAP_CNTL
	.comm	_GRPH_RED_CROSSBAR,4,2          ; @GRPH_RED_CROSSBAR
	.comm	_GRPH_BLUE_CROSSBAR,4,2         ; @GRPH_BLUE_CROSSBAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported grph pixel format"

	.comm	_GRPH_CONTROL,4,2               ; @GRPH_CONTROL
	.comm	_GRPH_DEPTH,4,2                 ; @GRPH_DEPTH
	.comm	_GRPH_FORMAT,4,2                ; @GRPH_FORMAT
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ; @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_SELECT,4,2       ; @GRPH_PRESCALE_SELECT
	.comm	_GRPH_PRESCALE_R_SIGN,4,2       ; @GRPH_PRESCALE_R_SIGN
	.comm	_GRPH_PRESCALE_G_SIGN,4,2       ; @GRPH_PRESCALE_G_SIGN
	.comm	_GRPH_PRESCALE_B_SIGN,4,2       ; @GRPH_PRESCALE_B_SIGN
	.no_dead_strip	_program_grph_pixel_format
.subsections_via_symbols
