	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmic_probe
_hdmic_probe:                           ## @hdmic_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	%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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 56(%r13)
	leaq	48(%r13), %rdi
	callq	_mutex_init
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, (%r13)
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_gpiod_to_irq
	movq	_hdmic_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	%r13, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	%r13, %r12
	addq	$8, %r12
	movq	_hdmic_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movq	%r14, 32(%r13)
	movq	_OMAP_DISPLAY_TYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	$1, 8(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, 16(%r13)
	movq	_OMAP_DSS_DEVICE_OP_DETECT@GOTPCREL(%rip), %rax
	movq	_OMAP_DSS_DEVICE_OP_HPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpq	$0, (%r13)
	cmovel	%r15d, %ecx
	movl	%ecx, 12(%r13)
	movq	%r12, %rdi
	callq	_omapdss_display_init
	movq	%r12, %rdi
	callq	_omapdss_device_register
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"failed to parse HPD gpio\n"

	.comm	_hdmic_hpd_isr,4,2              ## @hdmic_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
L_.str.2:                               ## @.str.2
	.asciz	"hdmic hpd"

	.comm	_hdmic_ops,4,2                  ## @hdmic_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
	.no_dead_strip	_hdmic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmic_probe
_hdmic_probe:                           ; @hdmic_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #56]
	add	x0, x19, #48
	bl	_mutex_init
Lloh3:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	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
	b	_PTR_ERR
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	str	x21, [x19]
	cbz	x21, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_gpiod_to_irq
	mov	x1, x0
Lloh13:
	adrp	x8, _hdmic_hpd_isr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hdmic_hpd_isr@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w4, w8, w9
Lloh25:
	adrp	x5, l_.str.2@PAGE
Lloh26:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_7
LBB0_6:
Lloh27:
	adrp	x8, _hdmic_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _hdmic_ops@GOTPAGEOFF]
	stp	x20, x8, [x19, #32]
Lloh29:
	adrp	x8, _OMAP_DISPLAY_TYPE_HDMI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OMAP_DISPLAY_TYPE_HDMI@GOTPAGEOFF]
	mov	w9, #1
	mov	x20, x19
	str	w9, [x20, #8]!
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	mov	w0, #0
	bl	_BIT
	ldr	x8, [x19]
Lloh35:
	adrp	x9, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _OMAP_DSS_DEVICE_OP_DETECT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _OMAP_DSS_DEVICE_OP_HPD@GOTPAGE
Lloh39:
	ldr	x10, [x10, _OMAP_DSS_DEVICE_OP_HPD@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	stp	w8, w0, [x19, #12]
	mov	x0, x20
	bl	_omapdss_display_init
	mov	x0, x20
	bl	_omapdss_device_register
	mov	w0, #0
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"failed to parse HPD gpio\n"

	.comm	_hdmic_hpd_isr,4,2              ; @hdmic_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
l_.str.2:                               ; @.str.2
	.asciz	"hdmic hpd"

	.comm	_hdmic_ops,4,2                  ; @hdmic_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
	.no_dead_strip	_hdmic_probe
.subsections_via_symbols
