	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_connect         ## -- Begin function omapdss_device_connect
	.p2align	4, 0x90
_omapdss_device_connect:                ## @omapdss_device_connect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movl	32(%r14), %edi
	callq	_dev_name
	movq	%rax, %r13
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	cmpq	$0, 24(%r14)
	jne	LBB0_13
## %bb.8:
	cmpq	$0, 16(%r14)
	jne	LBB0_13
	jmp	LBB0_9
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	leaq	L_.str.1(%rip), %r13
LBB0_4:
	movl	32(%rbx), %edi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_omapdss_device_is_connected
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_11:
	movq	%r15, (%rbx)
	movq	8(%rbx), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_13
## %bb.12:
	movq	$0, (%rbx)
	movl	%ecx, %eax
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%rcx, %rdx
	callq	_dev_dbg
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connect(%s, %s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"NULL"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_connect         ; -- Begin function omapdss_device_connect
	.p2align	2
_omapdss_device_connect:                ; @omapdss_device_connect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_dev_name
	mov	x23, x0
	cbnz	x20, LBB0_6
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
	b	LBB0_11
LBB0_4:
	cbz	x20, LBB0_10
; %bb.5:
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:
	ldr	w0, [x20, #32]
	bl	_dev_name
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
	mov	x0, x20
	bl	_omapdss_device_is_connected
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	str	x21, [x20]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbnz	w0, #31, LBB0_14
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x2
	bl	_dev_dbg
LBB0_11:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	str	xzr, [x20]
	b	LBB0_13
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connect(%s, %s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"NULL"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
