	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_tcon_get_pixel_depth
_sun4i_tcon_get_pixel_depth:            ## @sun4i_tcon_get_pixel_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_sun4i_tcon_get_connector
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$1, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	8(%rax), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.4:
	cltq
	leaq	l_switch.table.sun4i_tcon_get_pixel_depth(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sun4i_tcon_get_pixel_depth
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.sun4i_tcon_get_pixel_depth
l_switch.table.sun4i_tcon_get_pixel_depth:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	18                              ## 0x12

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_tcon_get_pixel_depth
_sun4i_tcon_get_pixel_depth:            ; @sun4i_tcon_get_pixel_depth
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_sun4i_tcon_get_connector
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.sun4i_tcon_get_pixel_depth@PAGE
Lloh1:
	add	x9, x9, l_switch.table.sun4i_tcon_get_pixel_depth@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sun4i_tcon_get_pixel_depth
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.sun4i_tcon_get_pixel_depth
l_switch.table.sun4i_tcon_get_pixel_depth:
	.long	24                              ; 0x18
	.long	24                              ; 0x18
	.long	18                              ; 0x12

.subsections_via_symbols
