	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_probe             ## -- Begin function tegra_output_probe
	.p2align	4, 0x90
_tegra_output_probe:                    ## @tegra_output_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	movq	%rdi, 32(%r15)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_drm_find_panel
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.22:
	movq	48(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_of_node_put
LBB0_5:
	movq	32(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_get_property
	movl	%eax, 44(%r15)
	movq	32(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_find_i2c_adapter_by_node
	movl	%eax, 40(%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_of_node_put
LBB0_9:
	movq	8(%r15), %rdi
	movq	32(%r15), %rsi
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %r9
	xorl	%ecx, %ecx
	callq	_devm_gpiod_get_from_of_node
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_11
## %bb.12:
	movq	$0, 24(%r15)
	jmp	LBB0_19
LBB0_13:
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.14:
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	%r14d, (%r15)
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	_hpd_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	(%r15), %edi
	callq	_disable_irq
LBB0_19:
	movq	8(%r15), %rdi
	callq	_cec_notifier_get
	movl	%eax, 4(%r15)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_11:
	movq	24(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_7:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_of_node_put
	jmp	LBB0_21
LBB0_15:
	movq	8(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_17:
	movl	%eax, %r14d
	movq	8(%r15), %rdi
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia,panel"

L_.str.1:                               ## @.str.1
	.asciz	"nvidia,edid"

L_.str.2:                               ## @.str.2
	.asciz	"nvidia,ddc-i2c-bus"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"nvidia,hpd-gpio"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.4:                               ## @.str.4
	.asciz	"HDMI hotplug detect"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.5:                               ## @.str.5
	.asciz	"gpiod_to_irq(): %d\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_hpd_irq,4,2                    ## @hpd_irq
L_.str.6:                               ## @.str.6
	.asciz	"hpd"

L_.str.7:                               ## @.str.7
	.asciz	"failed to request IRQ#%u: %d\n"

	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_output_probe             ; -- Begin function tegra_output_probe
	.p2align	2
_tegra_output_probe:                    ; @tegra_output_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0, #32]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	str	x0, [x19, #32]
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	bl	_of_drm_find_panel
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #48]
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_5:
	mov	x0, x20
	bl	_of_node_put
LBB0_6:
	ldr	x0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	str	w0, [x19, #44]
	ldr	x0, [x19, #32]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_9
; %bb.7:
	mov	x21, x0
	bl	_of_find_i2c_adapter_by_node
	str	w0, [x19, #40]
	cbz	w0, LBB0_19
; %bb.8:
	mov	x0, x21
	bl	_of_node_put
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	x1, [x19, #32]
Lloh6:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh11:
	adrp	x5, l_.str.4@PAGE
Lloh12:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	w3, #0
	bl	_devm_gpiod_get_from_of_node
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	bl	_PTR_ERR
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.11:
	str	xzr, [x19, #24]
	b	LBB0_16
LBB0_12:
	cbz	x0, LBB0_16
; %bb.13:
	bl	_gpiod_to_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_21
; %bb.14:
	str	w20, [x19]
Lloh16:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IRQF_ONESHOT@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh24:
	ldr	x9, [x10]
	orr	x3, x8, x9
Lloh25:
	adrp	x8, _hpd_irq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _hpd_irq@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x4, l_.str.6@PAGE
Lloh29:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_22
; %bb.15:
Lloh30:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w0, [x19]
	bl	_disable_irq
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_cec_notifier_get
	str	w0, [x19, #4]
	cbz	w0, LBB0_20
; %bb.17:
	mov	w20, #0
	b	LBB0_24
LBB0_18:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_24
LBB0_19:
Lloh33:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_24
LBB0_20:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_21:
	ldr	x0, [x19, #8]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	b	LBB0_23
LBB0_22:
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
	str	x20, [sp]
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_23:
	bl	_dev_err
LBB0_24:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia,panel"

l_.str.1:                               ; @.str.1
	.asciz	"nvidia,edid"

l_.str.2:                               ; @.str.2
	.asciz	"nvidia,ddc-i2c-bus"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"nvidia,hpd-gpio"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.4:                               ; @.str.4
	.asciz	"HDMI hotplug detect"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.5:                               ; @.str.5
	.asciz	"gpiod_to_irq(): %d\n"

	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_hpd_irq,4,2                    ; @hpd_irq
l_.str.6:                               ; @.str.6
	.asciz	"hpd"

l_.str.7:                               ; @.str.7
	.asciz	"failed to request IRQ#%u: %d\n"

	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
