	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_lvds_i2c_init         ## -- Begin function oaktrail_lvds_i2c_init
	.p2align	4, 0x90
_oaktrail_lvds_i2c_init:                ## @oaktrail_lvds_i2c_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	callq	_to_gma_encoder
	movq	%rax, %r14
	movq	8(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 80(%rax)
	movl	(%r12), %eax
	movl	%eax, 72(%rbx)
	movl	20(%rbx), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	leaq	L_.str(%rip), %rsi
	callq	_strncpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rax
	addq	$24, %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	_set_data@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	_set_clock@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	_get_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_get_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$100, 24(%rbx)
	movl	$2200, %edi                     ## imm = 0x898
	callq	_usecs_to_jiffies
	movl	%eax, 40(%rbx)
	movq	%rbx, 32(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_set_data
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_set_clock
	movl	$50, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_i2c_bit_add_bus
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_2:
	movq	%rbx, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gma500 LPC"

	.comm	_I2C_NAME_SIZE,8,3              ## @I2C_NAME_SIZE
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_get_data,4,2                   ## @get_data
	.comm	_get_clock,4,2                  ## @get_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_lvds_i2c_init         ; -- Begin function oaktrail_lvds_i2c_init
	.p2align	2
_oaktrail_lvds_i2c_init:                ; @oaktrail_lvds_i2c_init
	.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
	ldr	x21, [x0]
	bl	_to_gma_encoder
	mov	x19, x0
	ldr	x22, [x21, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #80]
	ldr	w8, [x22]
	str	w8, [x0, #72]
	ldr	w0, [x0, #20]
Lloh3:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x2, x8, #1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strncpy
	mov	w8, #100
	mov	x9, x20
	str	w8, [x9, #24]!
Lloh8:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [x21]
	stp	x8, x9, [x20]
Lloh11:
	adrp	x8, _set_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _set_data@GOTPAGEOFF]
Lloh13:
	adrp	x9, _set_clock@GOTPAGE
Lloh14:
	ldr	x9, [x9, _set_clock@GOTPAGEOFF]
	stp	x9, x8, [x20, #56]
Lloh15:
	adrp	x8, _get_data@GOTPAGE
Lloh16:
	ldr	x8, [x8, _get_data@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _get_clock@GOTPAGE
Lloh19:
	ldr	x9, [x9, _get_clock@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
	mov	w0, #2200
	bl	_usecs_to_jiffies
	str	w0, [x20, #40]
	str	x20, [x20, #32]
	mov	x0, x20
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x20
	mov	w1, #1
	bl	_set_data
	mov	x0, x20
	mov	w1, #1
	bl	_set_clock
	mov	w0, #50
	bl	_udelay
	mov	x0, x20
	bl	_i2c_bit_add_bus
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	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	_kfree
LBB0_3:
	str	x20, [x19]
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gma500 LPC"

	.comm	_I2C_NAME_SIZE,8,3              ; @I2C_NAME_SIZE
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_get_data,4,2                   ; @get_data
	.comm	_get_clock,4,2                  ; @get_clock
.subsections_via_symbols
