	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_i2c_init         ## -- Begin function oaktrail_hdmi_i2c_init
	.p2align	4, 0x90
_oaktrail_hdmi_i2c_init:                ## @oaktrail_hdmi_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	_pci_get_drvdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_oaktrail_hdmi_i2c_adapter@GOTPCREL(%rip), %r12
	movq	%r12, 16(%rax)
	movq	_I2C_STAT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	callq	_oaktrail_hdmi_i2c_gpio_fix
	movl	(%r15), %edi
	movq	_oaktrail_hdmi_i2c_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_oaktrail_hdmi_i2c_adapter@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_add_numbered_adapter       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate interface\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_oaktrail_hdmi_i2c_adapter,4,2  ## @oaktrail_hdmi_i2c_adapter
	.comm	_I2C_STAT_INIT,4,2              ## @I2C_STAT_INIT
	.comm	_oaktrail_hdmi_i2c_handler,4,2  ## @oaktrail_hdmi_i2c_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"Failed to request IRQ for I2C controller\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_i2c_init         ; -- Begin function oaktrail_hdmi_i2c_init
	.p2align	2
_oaktrail_hdmi_i2c_init:                ; @oaktrail_hdmi_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
	mov	x21, x0
	bl	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x22, _oaktrail_hdmi_i2c_adapter@GOTPAGE
Lloh4:
	ldr	x22, [x22, _oaktrail_hdmi_i2c_adapter@GOTPAGEOFF]
	str	x22, [x0, #16]
Lloh5:
	adrp	x8, _I2C_STAT_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_STAT_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	add	x0, x0, #4
	bl	_init_completion
	mov	x0, x19
	bl	_mutex_init
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_adapdata
	str	x19, [x20]
	bl	_oaktrail_hdmi_i2c_gpio_fix
Lloh8:
	adrp	x8, _oaktrail_hdmi_i2c_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _oaktrail_hdmi_i2c_handler@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	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
	ret
LBB0_5:
Lloh21:
	adrp	x0, _oaktrail_hdmi_i2c_adapter@GOTPAGE
Lloh22:
	ldr	x0, [x0, _oaktrail_hdmi_i2c_adapter@GOTPAGEOFF]
	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	_i2c_add_numbered_adapter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate interface\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_oaktrail_hdmi_i2c_adapter,4,2  ; @oaktrail_hdmi_i2c_adapter
	.comm	_I2C_STAT_INIT,4,2              ; @I2C_STAT_INIT
	.comm	_oaktrail_hdmi_i2c_handler,4,2  ; @oaktrail_hdmi_i2c_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"Failed to request IRQ for I2C controller\n"

.subsections_via_symbols
