	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_setup            ## -- Begin function oaktrail_hdmi_setup
	.p2align	4, 0x90
_oaktrail_hdmi_setup:                   ## @oaktrail_hdmi_setup
	.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, %r14
	movq	8(%rdi), %r12
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2061, %esi                     ## imm = 0x80D
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	(%r14), %edi
	callq	_dev_err
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%eax, 12(%r15)
	movl	16(%r15), %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	(%r15), %rdi
	callq	_oaktrail_hdmi_i2c_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
LBB0_9:
	movq	%r15, (%r12)
	movq	%r14, %rdi
	callq	_oaktrail_hdmi_audio_disable
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable hdmi controller\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to map hdmi mmio\n"

L_.str.3:                               ## @.str.3
	.asciz	"HDMI I2C initialization failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"HDMI hardware present.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_setup            ; -- Begin function oaktrail_hdmi_setup
	.p2align	2
_oaktrail_hdmi_setup:                   ; @oaktrail_hdmi_setup
	.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, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #2061
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_pci_enable_device
	cbz	w0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_dev_err
	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_5:
	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_6:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_7:
	mov	x0, x21
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x20, #16]
	mov	x0, x21
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	str	w0, [x20, #12]
	ldr	w0, [x20, #16]
	bl	_ioremap
	str	w0, [x20, #8]
	cbz	w0, LBB0_11
; %bb.8:
	str	x21, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_pci_set_drvdata
	ldr	x0, [x20]
	bl	_oaktrail_hdmi_i2c_init
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_10:
	str	x20, [x22]
	mov	x0, x19
	bl	_oaktrail_hdmi_audio_disable
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	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	_dev_info
LBB0_11:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable hdmi controller\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to map hdmi mmio\n"

l_.str.3:                               ; @.str.3
	.asciz	"HDMI I2C initialization failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"HDMI hardware present.\n"

.subsections_via_symbols
