	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_init_output_port
_dpi_init_output_port:                  ## @dpi_init_output_port
	.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, %rax
	movq	%rdi, %rbx
	leaq	16(%rdi), %r15
	movl	$0, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_property_read_u32
	movl	-28(%rbp), %eax
	xorl	%r14d, %r14d
	cmpl	$3, %eax
	movl	$0, %ecx
	cmovll	%eax, %ecx
	movl	%ecx, (%rbx)
	cmpl	$1, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpl	$2, %eax
	leaq	L_.str.1(%rip), %rax
	cmovneq	%rdx, %rax
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 56(%rbx)
	movq	_OMAP_DSS_OUTPUT_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_OMAP_DISPLAY_TYPE_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%rbx, %rdi
	callq	_dpi_get_channel
	movl	%eax, 44(%rbx)
	movl	-28(%rbp), %edi
	callq	_BIT
	movl	%eax, 40(%rbx)
	movq	_dpi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	callq	_omapdss_device_init_output
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_omapdss_device_register
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"dpi.2"

L_.str.2:                               ## @.str.2
	.asciz	"dpi.1"

L_.str.3:                               ## @.str.3
	.asciz	"dpi.0"

	.comm	_OMAP_DSS_OUTPUT_DPI,4,2        ## @OMAP_DSS_OUTPUT_DPI
	.comm	_OMAP_DISPLAY_TYPE_DPI,4,2      ## @OMAP_DISPLAY_TYPE_DPI
	.comm	_dpi_ops,4,2                    ## @dpi_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_dpi_init_output_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_init_output_port
_dpi_init_output_port:                  ; @dpi_init_output_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x8
	bl	_of_property_read_u32
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, l_.str.3@PAGE
Lloh3:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #1
	csel	x9, x10, x9, eq
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #2
	csel	x9, x10, x9, eq
	mov	x19, x20
	str	x9, [x19, #16]!
	cmp	w8, #3
	csel	w8, w8, wzr, lt
	str	w8, [x20]
	ldr	x8, [x20, #8]
	str	x8, [x20, #56]
Lloh8:
	adrp	x8, _OMAP_DSS_OUTPUT_DPI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DSS_OUTPUT_DPI@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _OMAP_DISPLAY_TYPE_DPI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OMAP_DISPLAY_TYPE_DPI@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #48]
	mov	x0, x20
	bl	_dpi_get_channel
	str	w0, [x20, #44]
	ldr	w0, [sp, #12]
	bl	_BIT
Lloh14:
	adrp	x8, _dpi_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dpi_ops@GOTPAGEOFF]
	str	w0, [x20, #40]
	str	x8, [x20, #32]
Lloh16:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x19
	bl	_omapdss_device_init_output
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_omapdss_device_register
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"dpi.2"

l_.str.2:                               ; @.str.2
	.asciz	"dpi.1"

l_.str.3:                               ; @.str.3
	.asciz	"dpi.0"

	.comm	_OMAP_DSS_OUTPUT_DPI,4,2        ; @OMAP_DSS_OUTPUT_DPI
	.comm	_OMAP_DISPLAY_TYPE_DPI,4,2      ; @OMAP_DISPLAY_TYPE_DPI
	.comm	_dpi_ops,4,2                    ; @dpi_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_dpi_init_output_port
.subsections_via_symbols
