	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_disconnect      ## -- Begin function omapdss_device_disconnect
	.p2align	4, 0x90
_omapdss_device_disconnect:             ## @omapdss_device_disconnect
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdi, %rax
	testq	%rdi, %rdi
	cmoveq	%rsi, %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	je	LBB0_1
## %bb.2:
	movl	40(%r14), %edi
	callq	_dev_name
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:
	movl	40(%rbx), %edi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_dev_dbg
	cmpl	$0, 28(%rbx)
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_omapdss_device_is_connected
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	(%rbx), %rax
	movq	_OMAP_DSS_DISPLAY_DISABLED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	16(%rbx), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	$0, 8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %r12
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_7:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_dev_dbg
	xorl	%edi, %edi
	cmpl	$0, 36(%r14)
	jne	LBB0_10
## %bb.8:
	xorl	%edi, %edi
	cmpl	$0, 32(%r14)
	jmp	LBB0_9
LBB0_6:
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
LBB0_9:
	sete	%dil
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnect(%s, %s)\n"

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

	.comm	_OMAP_DSS_DISPLAY_DISABLED,8,3  ## @OMAP_DSS_DISPLAY_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omapdss_device_disconnect      ; -- Begin function omapdss_device_disconnect
	.p2align	2
_omapdss_device_disconnect:             ; @omapdss_device_disconnect
	.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	x20, x1
	mov	x19, x0
	cmp	x0, #0
	csel	x8, x1, x0, eq
	ldr	x8, [x8, #8]
	ldr	x21, [x8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_dev_name
	mov	x22, x0
	cbz	x20, LBB0_6
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_dev_name
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_omapdss_device_is_connected
	cbz	w0, LBB0_9
LBB0_4:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _OMAP_DSS_DISPLAY_DISABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OMAP_DSS_DISPLAY_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	str	xzr, [x20, #8]
	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:
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
	cbnz	x20, LBB0_2
LBB0_6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19, #32]
	b	LBB0_10
LBB0_9:
	ldr	w8, [x20, #24]
LBB0_10:
	cmp	w8, #0
	cset	w0, eq
LBB0_11:
	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	_WARN_ON
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnect(%s, %s)\n"

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

	.comm	_OMAP_DSS_DISPLAY_DISABLED,8,3  ; @OMAP_DSS_DISPLAY_DISABLED
.subsections_via_symbols
