	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oaktrail_lvds_get_configuration_mode
_oaktrail_lvds_get_configuration_mode:  ## @oaktrail_lvds_get_configuration_mode
	.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
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	$0, (%rsi)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	16(%rbx), %edx
	shll	$8, %edx
	orl	20(%rbx), %edx
	movl	%edx, (%rax)
	movl	24(%rbx), %ecx
	shll	$8, %ecx
	orl	28(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	32(%rbx), %esi
	shll	$8, %esi
	orl	36(%rbx), %esi
	addl	%edx, %esi
	movl	%esi, 8(%rax)
	movl	40(%rbx), %edi
	shll	$8, %edi
	orl	44(%rbx), %edi
	addl	%esi, %edi
	movl	%edi, 12(%rax)
	movl	48(%rbx), %esi
	shll	$8, %esi
	orl	52(%rbx), %esi
	addl	%edx, %esi
	movl	%esi, 16(%rax)
	movl	56(%rbx), %edx
	shll	$4, %edx
	orl	60(%rbx), %edx
	addl	%ecx, %edx
	movl	%edx, 20(%rax)
	movl	64(%rbx), %esi
	shll	$4, %esi
	orl	68(%rbx), %esi
	addl	%edx, %esi
	movl	%esi, 24(%rax)
	movl	72(%rbx), %edx
	shll	$8, %edx
	orl	76(%rbx), %edx
	addl	%ecx, %edx
	movl	%edx, 28(%rax)
	movl	80(%rbx), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%ecx, 32(%rax)
	movq	%rax, (%r14)
	jmp	LBB0_3
LBB0_4:
	movq	%rdi, %r15
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_drm_mode_duplicate
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_drm_mode_duplicate
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	%rax, %rdi
	callq	_drm_mode_set_name
	movq	(%r14), %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_mode_set_crtcinfo          ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_oaktrail_lvds_get_configuration_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oaktrail_lvds_get_configuration_mode
_oaktrail_lvds_get_configuration_mode:  ; @oaktrail_lvds_get_configuration_mode
	.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
	mov	x19, x1
	ldr	x21, [x0]
	str	xzr, [x1]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #36
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	ldp	w8, w9, [x21, #16]
	orr	w8, w9, w8, lsl #8
	ldp	w9, w10, [x21, #24]
	orr	w9, w10, w9, lsl #8
	stp	w8, w9, [x0]
	ldp	w10, w11, [x21, #32]
	orr	w10, w11, w10, lsl #8
	ldp	w11, w12, [x21, #40]
	orr	w11, w12, w11, lsl #8
	add	w10, w10, w8
	add	w11, w11, w10
	stp	w10, w11, [x0, #8]
	ldp	w10, w11, [x21, #48]
	orr	w10, w11, w10, lsl #8
	add	w8, w10, w8
	ldp	w10, w11, [x21, #56]
	orr	w10, w11, w10, lsl #4
	ldp	w11, w12, [x21, #64]
	orr	w11, w12, w11, lsl #4
	add	w10, w10, w9
	add	w11, w11, w10
	stp	w8, w10, [x0, #16]
	ldp	w8, w10, [x21, #72]
	orr	w8, w10, w8, lsl #8
	add	w8, w8, w9
	stp	w11, w8, [x0, #24]
	ldr	w8, [x21, #80]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	str	w8, [x0, #32]
	str	x0, [x19]
	b	LBB0_7
LBB0_3:
	mov	x20, x0
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_drm_mode_duplicate
	str	x0, [x19]
	cbnz	x0, LBB0_7
LBB0_5:
	ldr	x1, [x21]
	cbz	x1, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_drm_mode_duplicate
	str	x0, [x19]
	cbz	x0, LBB0_8
LBB0_7:
	bl	_drm_mode_set_name
	ldr	x0, [x19]
	mov	w1, #0
	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
	b	_drm_mode_set_crtcinfo
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_oaktrail_lvds_get_configuration_mode
.subsections_via_symbols
