	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_monitor_bpc         ## -- Begin function radeon_get_monitor_bpc
	.p2align	4, 0x90
_radeon_get_monitor_bpc:                ## @radeon_get_monitor_bpc
	.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
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	callq	_to_radeon_connector
	movq	%rax, %rcx
	movl	(%rbx), %edx
	movl	$8, %eax
	addl	$-128, %edx
	cmpl	$6, %edx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_7:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE41
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE5
	movl	%eax, %ecx
	movl	$8, %eax
	testl	%ecx, %ecx
	je	LBB0_11
LBB0_10:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rax, %rdi
	callq	_to_radeon_encoder
	movq	(%rax), %rax
	movq	_ATOM_PANEL_MISC_V13_6BIT_PER_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	leal	(%rdx,%rdx), %eax
	addl	$6, %eax
	jmp	LBB0_11
LBB0_2:
	cmpl	$0, 16(%rcx)
	jne	LBB0_3
	jmp	LBB0_11
LBB0_5:
	movq	8(%rcx), %rax
	movl	(%rax), %eax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_4
## %bb.6:
	movq	_CONNECTOR_OBJECT_ID_eDP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_4
LBB0_3:
	movl	(%rcx), %edi
	callq	_drm_detect_hdmi_monitor
	movl	%eax, %ecx
	movl	$8, %eax
	testl	%ecx, %ecx
	je	LBB0_11
LBB0_4:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	movl	$8, %eax
	cmovnel	%ecx, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ## @CONNECTOR_OBJECT_ID_eDP
	.comm	_ATOM_PANEL_MISC_V13_6BIT_PER_COLOR,4,2 ## @ATOM_PANEL_MISC_V13_6BIT_PER_COLOR
	.comm	_ATOM_PANEL_MISC_V13_8BIT_PER_COLOR,4,2 ## @ATOM_PANEL_MISC_V13_8BIT_PER_COLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_monitor_bpc         ; -- Begin function radeon_get_monitor_bpc
	.p2align	2
_radeon_get_monitor_bpc:                ; @radeon_get_monitor_bpc
	.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
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	bl	_to_radeon_connector
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #16]
	cbnz	w0, LBB0_14
; %bb.3:
	mov	x0, x20
	bl	_ASIC_IS_DCE41
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ASIC_IS_DCE5
	cbz	w0, LBB0_13
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	bl	_to_radeon_encoder
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _ATOM_PANEL_MISC_V13_6BIT_PER_COLOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATOM_PANEL_MISC_V13_6BIT_PER_COLOR@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #6
	mov	w9, #8
	b	LBB0_12
LBB0_6:
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_13
LBB0_7:
	ldr	w0, [x0]
	bl	_drm_detect_hdmi_monitor
	mov	x8, x0
	mov	w0, #8
	cbz	w8, LBB0_14
; %bb.8:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	csel	w0, w0, w8, eq
	b	LBB0_14
LBB0_9:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CONNECTOR_OBJECT_ID_eDP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x0]
	bl	_drm_detect_hdmi_monitor
	cbz	w0, LBB0_13
LBB0_11:
	ldr	w8, [x19, #16]
	mov	w9, #8
	cmp	w8, #0
LBB0_12:
	csel	w0, w9, w8, eq
	b	LBB0_14
LBB0_13:
	mov	w0, #8
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,4,2 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_CONNECTOR_OBJECT_ID_eDP,4,2    ; @CONNECTOR_OBJECT_ID_eDP
	.comm	_ATOM_PANEL_MISC_V13_6BIT_PER_COLOR,4,2 ; @ATOM_PANEL_MISC_V13_6BIT_PER_COLOR
	.comm	_ATOM_PANEL_MISC_V13_8BIT_PER_COLOR,4,2 ; @ATOM_PANEL_MISC_V13_8BIT_PER_COLOR
.subsections_via_symbols
