	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_connector_detect
_omap_connector_detect:                 ## @omap_connector_detect
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_OMAP_DSS_DEVICE_OP_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_omap_connector_find_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rcx
	movq	%rax, %rdi
	callq	*(%rcx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.6:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_omap_connector_hpd_notify
	jmp	LBB0_9
LBB0_7:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_VERB
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_DEVICE_OP_DETECT,4,2  ## @OMAP_DSS_DEVICE_OP_DETECT
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %d (force=%d)"

	.no_dead_strip	_omap_connector_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_connector_detect
_omap_connector_detect:                 ; @omap_connector_detect
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_omap_connector_find_device
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh3:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh5:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh6:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_omap_connector_hpd_notify
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x8]
LBB0_6:
	ldr	w1, [x20, #4]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_VERB
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_DEVICE_OP_DETECT,4,2  ; @OMAP_DSS_DEVICE_OP_DETECT
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %d (force=%d)"

	.no_dead_strip	_omap_connector_detect
.subsections_via_symbols
