	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_lvds_get_modes
_panel_lvds_get_modes:                  ## @panel_lvds_get_modes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_panel_lvds
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movl	24(%rax), %edi
	callq	_drm_mode_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	20(%rbx), %rdi
	movq	%rax, %rsi
	callq	_drm_display_mode_from_videomode
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_mode_probed_add
	movl	16(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	%rbx, %rsi
	addq	$8, %rsi
	movl	$1, %r15d
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_drm_display_info_set_bus_formats
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_DRM_BUS_FLAG_DATA_MSB_TO_LSB@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_BUS_FLAG_DATA_LSB_TO_MSB,4,2 ## @DRM_BUS_FLAG_DATA_LSB_TO_MSB
	.comm	_DRM_BUS_FLAG_DATA_MSB_TO_LSB,4,2 ## @DRM_BUS_FLAG_DATA_MSB_TO_LSB
	.no_dead_strip	_panel_lvds_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_lvds_get_modes
_panel_lvds_get_modes:                  ; @panel_lvds_get_modes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_to_panel_lvds
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	w0, [x0, #24]
	bl	_drm_mode_create
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #20
	mov	x1, x21
	bl	_drm_display_mode_from_videomode
Lloh0:
	adrp	x8, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_mode_probed_add
	ldur	d0, [x20, #12]
	stur	d0, [x19, #4]
	add	x1, x20, #8
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_drm_display_info_set_bus_formats
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_BUS_FLAG_DATA_LSB_TO_MSB@GOTPAGEOFF]
Lloh8:
	adrp	x10, _DRM_BUS_FLAG_DATA_MSB_TO_LSB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DRM_BUS_FLAG_DATA_MSB_TO_LSB@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_BUS_FLAG_DATA_LSB_TO_MSB,4,2 ; @DRM_BUS_FLAG_DATA_LSB_TO_MSB
	.comm	_DRM_BUS_FLAG_DATA_MSB_TO_LSB,4,2 ; @DRM_BUS_FLAG_DATA_MSB_TO_LSB
	.no_dead_strip	_panel_lvds_get_modes
.subsections_via_symbols
