	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_detect_phy
_dw_hdmi_detect_phy:                    ## @dw_hdmi_detect_phy
	.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, %r15
	movq	32(%rdi), %rax
	cmpq	$0, 32(%rax)
	jne	LBB0_8
## %bb.1:
	movq	_HDMI_CONFIG2_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_hdmi_readb
	movq	%rax, %r14
	movq	_DW_HDMI_PHY_VENDOR_PHY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
LBB0_8:
	movq	32(%r15), %rax
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:
	movq	%rcx, 24(%r15)
	movq	16(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%rdx, 8(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_10:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_2:
	movq	_dw_hdmi_phys@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpq	%r14, (%rdi,%r13)
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$24, %r13
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_13:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdx
LBB0_14:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_dw_hdmi_synopsys_phy_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	leaq	(%rdi,%r13), %rax
	movq	8(%rdi,%r13), %rdx
	movq	%rdx, 8(%r15)
	movq	%rax, 16(%r15)
	xorl	%r12d, %r12d
	cmpl	$0, 16(%rdi,%r13)
	jne	LBB0_16
## %bb.6:
	movq	32(%r15), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_16
## %bb.7:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_HDMI_PHY_VENDOR_PHY,8,3     ## @DW_HDMI_PHY_VENDOR_PHY
	.comm	_HDMI_CONFIG2_ID,4,2            ## @HDMI_CONFIG2_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vendor HDMI PHY not supported by glue layer\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_dw_hdmi_phys,8,3               ## @dw_hdmi_phys
	.comm	_dw_hdmi_synopsys_phy_ops,4,2   ## @dw_hdmi_synopsys_phy_ops
L_.str.1:                               ## @.str.1
	.asciz	"%s requires platform support\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported HDMI PHY type (%02x)\n"

	.no_dead_strip	_dw_hdmi_detect_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_detect_phy
_dw_hdmi_detect_phy:                    ; @dw_hdmi_detect_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8, #32]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HDMI_CONFIG2_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_CONFIG2_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_readb
Lloh3:
	adrp	x8, _DW_HDMI_PHY_VENDOR_PHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DW_HDMI_PHY_VENDOR_PHY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x10, [x8]
	cbz	x10, LBB0_5
; %bb.4:
	mov	w0, #0
	str	x9, [x19, #24]
	ldr	x8, [x8, #16]
	stp	x10, x8, [x19, #8]
	b	LBB0_12
LBB0_5:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	x20, x0
Lloh8:
	adrp	x21, _dw_hdmi_phys@GOTPAGE
Lloh9:
	ldr	x21, [x21, _dw_hdmi_phys@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_10
; %bb.7:
	mov	x22, #0
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x0, x22]
	cmp	x8, x20
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #24
	cmp	x23, w0, uxtw
	b.lo	LBB0_8
LBB0_10:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh15:
	adrp	x8, _dw_hdmi_synopsys_phy_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dw_hdmi_synopsys_phy_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	add	x9, x0, x22
	ldr	x8, [x9, #8]
	stp	x8, x9, [x19, #8]
	ldr	w9, [x9, #16]
	cbnz	w9, LBB0_15
; %bb.14:
	ldr	x9, [x19, #32]
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_12
LBB0_16:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_HDMI_PHY_VENDOR_PHY,8,3     ; @DW_HDMI_PHY_VENDOR_PHY
	.comm	_HDMI_CONFIG2_ID,4,2            ; @HDMI_CONFIG2_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vendor HDMI PHY not supported by glue layer\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dw_hdmi_phys,8,3               ; @dw_hdmi_phys
	.comm	_dw_hdmi_synopsys_phy_ops,4,2   ; @dw_hdmi_synopsys_phy_ops
l_.str.1:                               ; @.str.1
	.asciz	"%s requires platform support\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported HDMI PHY type (%02x)\n"

	.no_dead_strip	_dw_hdmi_detect_phy
.subsections_via_symbols
