	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cht_int33fe_setup_dp
_cht_int33fe_setup_dp:                  ## @cht_int33fe_setup_dp
	.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	%rdi, %r14
	movq	_nodes@GOTPCREL(%rip), %rax
	movq	_INT33FE_NODE_DISPLAYPORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_software_node_fwnode
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_PCI_CLASS_DISPLAY_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_pci_get_class
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r12), %rax
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	addq	$8, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_device_get_named_child_node
	movq	%rax, (%r14)
	movq	%r12, %rdi
	callq	_pci_dev_put
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	subl	(%rax), %edi
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.4:
	callq	_ERR_PTR
	movl	%eax, (%r15)
	movq	(%r14), %rax
	movq	%r15, (%rax)
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_pci_dev_put
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%edi, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_nodes,8,3                      ## @nodes
	.comm	_INT33FE_NODE_DISPLAYPORT,8,3   ## @INT33FE_NODE_DISPLAYPORT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ## @PCI_CLASS_DISPLAY_VGA
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ## @PCI_VENDOR_ID_INTEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DD02"

	.no_dead_strip	_cht_int33fe_setup_dp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cht_int33fe_setup_dp
_cht_int33fe_setup_dp:                  ; @cht_int33fe_setup_dp
	.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, _nodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nodes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _INT33FE_NODE_DISPLAYPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT33FE_NODE_DISPLAYPORT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_software_node_fwnode
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _PCI_CLASS_DISPLAY_VGA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_CLASS_DISPLAY_VGA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w0, w8, #8
	mov	x1, #0
	bl	_pci_get_class
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	add	x0, x21, #8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_get_named_child_node
	str	x0, [x19]
	mov	x0, x21
	bl	_pci_dev_put
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _ENODEV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	neg	w0, w9
	cbz	x8, LBB0_7
; %bb.4:
	bl	_ERR_PTR
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	ldr	x8, [x19]
	str	x20, [x8]
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_pci_dev_put
LBB0_6:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_nodes,8,3                      ; @nodes
	.comm	_INT33FE_NODE_DISPLAYPORT,8,3   ; @INT33FE_NODE_DISPLAYPORT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ; @PCI_CLASS_DISPLAY_VGA
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ; @PCI_VENDOR_ID_INTEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DD02"

	.no_dead_strip	_cht_int33fe_setup_dp
.subsections_via_symbols
