	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_bpc_show
_output_bpc_show:                       ## @output_bpc_show
	.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	%rdi, %r13
	movq	(%rdi), %r12
	movq	16(%r12), %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_lock
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_lock
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	callq	_to_dm_crtc_state
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.5:
	cltq
	leaq	l_switch.table.output_bpc_show(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_seq_printf
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r13, %rdi
	callq	_drm_modeset_unlock
LBB0_7:
	movq	%rbx, %rdi
	callq	_drm_modeset_unlock
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Current: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Maximum: %u\n"

	.no_dead_strip	_output_bpc_show
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.output_bpc_show
l_switch.table.output_bpc_show:
	.long	8                               ## 0x8
	.long	6                               ## 0x6
	.long	16                              ## 0x10
	.long	12                              ## 0xc
	.long	10                              ## 0xa

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_bpc_show
_output_bpc_show:                       ; @output_bpc_show
	.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	x22, x0
	ldr	x24, [x0]
	ldr	x19, [x24, #16]
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	mov	x1, #0
	bl	_drm_modeset_lock
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x23, [x8]
	cbz	x23, LBB0_7
; %bb.2:
	mov	x0, x23
	mov	x1, #0
	bl	_drm_modeset_lock
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_to_dm_crtc_state
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.5:
Lloh3:
	adrp	x9, l_switch.table.output_bpc_show@PAGE
Lloh4:
	add	x9, x9, l_switch.table.output_bpc_show@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_seq_printf
	ldr	w2, [x24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_seq_printf
	mov	w21, #0
LBB0_6:
	mov	x0, x23
	bl	_drm_modeset_unlock
LBB0_7:
	mov	x0, x20
	bl	_drm_modeset_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Current: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Maximum: %u\n"

	.no_dead_strip	_output_bpc_show
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.output_bpc_show
l_switch.table.output_bpc_show:
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.long	16                              ; 0x10
	.long	12                              ; 0xc
	.long	10                              ; 0xa

.subsections_via_symbols
