	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_pixel_format
_program_pixel_format:                  ## @program_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	%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	%esi, %ebx
	movq	%rdi, %r15
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rdi), %edi
	cmpl	%esi, (%rax)
	jbe	LBB0_5
## %bb.1:
	movq	_mmUNP_GRPH_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_dm_read_reg
	movl	%eax, %r14d
	addl	$-130, %ebx
	cmpl	$9, %ebx
	ja	LBB0_2
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_switch.table.program_pixel_format(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	leaq	l_switch.table.program_pixel_format.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	jmp	LBB0_4
LBB0_5:
	movq	_mmUNP_GRPH_CONTROL_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm_read_reg
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	$128, %ebx
	sete	%al
	leal	(%rax,%rax,2), %eax
	cmpl	$129, %ebx
	movl	$2, %esi
	cmovnel	%eax, %esi
	movq	_UNP_GRPH_CONTROL_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIDEO_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	jmp	LBB0_6
LBB0_2:
	xorl	%r13d, %r13d
	movl	$2, %esi
LBB0_4:
	movq	_UNP_GRPH_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_GRPH_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_set_reg_field_value
	movl	(%rbx), %edx
	movq	_GRPH_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	_mmUNP_GRPH_CONTROL_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm_read_reg
	movl	%eax, %r14d
	movq	_UNP_GRPH_CONTROL_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIDEO_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	xorl	%esi, %esi
LBB0_6:
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	_mmUNP_GRPH_CONTROL_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_write_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_mmUNP_GRPH_CONTROL,4,2         ## @mmUNP_GRPH_CONTROL
	.comm	_UNP_GRPH_CONTROL,4,2           ## @UNP_GRPH_CONTROL
	.comm	_GRPH_DEPTH,4,2                 ## @GRPH_DEPTH
	.comm	_GRPH_FORMAT,4,2                ## @GRPH_FORMAT
	.comm	_mmUNP_GRPH_CONTROL_EXP,4,2     ## @mmUNP_GRPH_CONTROL_EXP
	.comm	_UNP_GRPH_CONTROL_EXP,4,2       ## @UNP_GRPH_CONTROL_EXP
	.comm	_VIDEO_FORMAT,4,2               ## @VIDEO_FORMAT
	.no_dead_strip	_program_pixel_format
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.program_pixel_format
l_switch.table.program_pixel_format:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3

	.p2align	2                               ## @switch.table.program_pixel_format.1
l_switch.table.program_pixel_format.1:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_pixel_format
_program_pixel_format:                  ; @program_pixel_format
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w0, [x0]
Lloh3:
	adrp	x22, _mmUNP_GRPH_CONTROL_EXP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _mmUNP_GRPH_CONTROL_EXP@GOTPAGEOFF]
	cmp	w8, w1
	b.ls	LBB0_3
; %bb.1:
Lloh5:
	adrp	x23, _mmUNP_GRPH_CONTROL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _mmUNP_GRPH_CONTROL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_dm_read_reg
	mov	x20, x0
	sub	w8, w21, #130
	cmp	w8, #9
	b.hi	LBB0_4
; %bb.2:
	sbfiz	x8, x8, #2, #32
Lloh7:
	adrp	x9, l_switch.table.program_pixel_format@PAGE
Lloh8:
	add	x9, x9, l_switch.table.program_pixel_format@PAGEOFF
	ldr	w1, [x9, x8]
Lloh9:
	adrp	x9, l_switch.table.program_pixel_format.1@PAGE
Lloh10:
	add	x9, x9, l_switch.table.program_pixel_format.1@PAGEOFF
	ldr	w21, [x9, x8]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x22]
	bl	_dm_read_reg
	mov	x20, x0
	mov	w8, #3
	cmp	w21, #128
	csel	w8, w8, wzr, eq
	mov	w9, #2
	cmp	w21, #129
	csel	w1, w9, w8, eq
Lloh11:
	adrp	x8, _UNP_GRPH_CONTROL_EXP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UNP_GRPH_CONTROL_EXP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _VIDEO_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VIDEO_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	mov	w1, #2
LBB0_5:
Lloh17:
	adrp	x24, _UNP_GRPH_CONTROL@GOTPAGE
Lloh18:
	ldr	x24, [x24, _UNP_GRPH_CONTROL@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh19:
	adrp	x8, _GRPH_DEPTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GRPH_DEPTH@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_set_reg_field_value
	ldr	w2, [x24]
Lloh22:
	adrp	x8, _GRPH_FORMAT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GRPH_FORMAT@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_set_reg_field_value
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	x2, x20
	bl	_dm_write_reg
	ldr	w0, [x19]
	ldr	w1, [x22]
	bl	_dm_read_reg
	mov	x20, x0
Lloh25:
	adrp	x8, _UNP_GRPH_CONTROL_EXP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UNP_GRPH_CONTROL_EXP@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _VIDEO_FORMAT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VIDEO_FORMAT@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	w1, #0
LBB0_6:
	bl	_set_reg_field_value
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	x2, x20
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_mmUNP_GRPH_CONTROL,4,2         ; @mmUNP_GRPH_CONTROL
	.comm	_UNP_GRPH_CONTROL,4,2           ; @UNP_GRPH_CONTROL
	.comm	_GRPH_DEPTH,4,2                 ; @GRPH_DEPTH
	.comm	_GRPH_FORMAT,4,2                ; @GRPH_FORMAT
	.comm	_mmUNP_GRPH_CONTROL_EXP,4,2     ; @mmUNP_GRPH_CONTROL_EXP
	.comm	_UNP_GRPH_CONTROL_EXP,4,2       ; @UNP_GRPH_CONTROL_EXP
	.comm	_VIDEO_FORMAT,4,2               ; @VIDEO_FORMAT
	.no_dead_strip	_program_pixel_format
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.program_pixel_format
l_switch.table.program_pixel_format:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3

	.p2align	2                               ; @switch.table.program_pixel_format.1
l_switch.table.program_pixel_format.1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
