	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpd_probe
_tpd_probe:                             ## @tpd_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_index_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movq	%rbx, 64(%r14)
	movl	(%r12), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_devm_gpiod_get_index_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, 56(%r14)
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, 40(%r14)
	movq	%r14, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	40(%r14), %rdi
	callq	_gpiod_to_irq
	movq	_tpd_hpd_isr@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rdx), %r8d
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str(%rip), %r9
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	_tpd_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r15, 24(%r14)
	movq	_OMAP_DISPLAY_TYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	$1, %edi
	callq	_BIT
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	orl	%r12d, %eax
	movl	%eax, (%r14)
	movq	_OMAP_DSS_DEVICE_OP_DETECT@GOTPCREL(%rip), %rax
	movq	_OMAP_DSS_DEVICE_OP_HPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_omapdss_of_find_connected_device
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_11:
	movq	8(%r14), %rdi
	jmp	LBB0_4
LBB0_12:
	movq	%r14, %rdi
	callq	_omapdss_device_register
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.comm	_tpd_hpd_isr,4,2                ## @tpd_hpd_isr
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tpd12s015 hpd"

	.comm	_tpd_ops,4,2                    ## @tpd_ops
	.comm	_OMAP_DISPLAY_TYPE_HDMI,4,2     ## @OMAP_DISPLAY_TYPE_HDMI
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_OMAP_DSS_DEVICE_OP_DETECT,4,2  ## @OMAP_DSS_DEVICE_OP_DETECT
	.comm	_OMAP_DSS_DEVICE_OP_HPD,4,2     ## @OMAP_DSS_DEVICE_OP_HPD
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to find video sink\n"

	.no_dead_strip	_tpd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpd_probe
_tpd_probe:                             ; @tpd_probe
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh3:
	adrp	x22, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_devm_gpiod_get_index_optional
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
	str	x21, [x20, #64]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	bl	_devm_gpiod_get_index_optional
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:
	str	x21, [x20, #56]
Lloh5:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #2
	bl	_devm_gpiod_get_index
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
LBB0_4:
	mov	x0, x21
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
	b	_PTR_ERR
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	str	x21, [x20, #40]
	add	x0, x20, #48
	bl	_mutex_init
	ldr	x0, [x20, #40]
	bl	_gpiod_to_irq
	mov	x1, x0
Lloh11:
	adrp	x8, _tpd_hpd_isr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tpd_hpd_isr@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w4, w8, w9
Lloh23:
	adrp	x5, l_.str@PAGE
Lloh24:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_7
; %bb.9:
Lloh25:
	adrp	x8, _tpd_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tpd_ops@GOTPAGEOFF]
	stp	x19, x8, [x20, #24]
Lloh27:
	adrp	x8, _OMAP_DISPLAY_TYPE_HDMI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OMAP_DISPLAY_TYPE_HDMI@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	mov	w0, #1
	bl	_BIT
	mov	x21, x0
	mov	w0, #0
	bl	_BIT
	orr	w8, w0, w21
	str	w8, [x20]
Lloh33:
	adrp	x8, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _OMAP_DSS_DEVICE_OP_HPD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _OMAP_DSS_DEVICE_OP_HPD@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_omapdss_of_find_connected_device
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
Lloh39:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.11:
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	ldr	x0, [x20, #8]
	b	LBB0_5
LBB0_13:
	mov	x0, x20
	bl	_omapdss_device_register
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.comm	_tpd_hpd_isr,4,2                ; @tpd_hpd_isr
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tpd12s015 hpd"

	.comm	_tpd_ops,4,2                    ; @tpd_ops
	.comm	_OMAP_DISPLAY_TYPE_HDMI,4,2     ; @OMAP_DISPLAY_TYPE_HDMI
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_OMAP_DSS_DEVICE_OP_DETECT,4,2  ; @OMAP_DSS_DEVICE_OP_DETECT
	.comm	_OMAP_DSS_DEVICE_OP_HPD,4,2     ; @OMAP_DSS_DEVICE_OP_HPD
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to find video sink\n"

	.no_dead_strip	_tpd_probe
.subsections_via_symbols
