	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dp_phy_probe
_cdns_dp_phy_probe:                     ## @cdns_dp_phy_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r12, 24(%rax)
	movq	_cdns_dp_phy_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	16(%r14), %rdi
	jmp	LBB0_7
LBB0_8:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_DEFAULT_NUM_LANES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r14)
	jmp	LBB0_13
LBB0_12:
	movl	(%r14), %edx
LBB0_13:
	cmpl	$4, %edx
	ja	LBB0_15
## %bb.14:
	movl	$22, %eax
	btl	%edx, %eax
	jae	LBB0_15
## %bb.17:
	movq	%r14, %rbx
	addq	$4, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	_DEFAULT_MAX_BIT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	jmp	LBB0_20
LBB0_19:
	movl	(%rbx), %edx
LBB0_20:
	cmpl	$3239, %edx                     ## imm = 0xCA7
	jle	LBB0_21
## %bb.24:
	cmpl	$5399, %edx                     ## imm = 0x1517
	jg	LBB0_28
## %bb.25:
	cmpl	$3240, %edx                     ## imm = 0xCA8
	je	LBB0_27
## %bb.26:
	cmpl	$4320, %edx                     ## imm = 0x10E0
	je	LBB0_27
	jmp	LBB0_30
LBB0_21:
	cmpl	$2160, %edx                     ## imm = 0x870
	je	LBB0_27
## %bb.22:
	cmpl	$2430, %edx                     ## imm = 0x97E
	je	LBB0_27
## %bb.23:
	cmpl	$2700, %edx                     ## imm = 0xA8C
	je	LBB0_27
	jmp	LBB0_30
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_16
LBB0_28:
	cmpl	$5400, %edx                     ## imm = 0x1518
	je	LBB0_27
## %bb.29:
	cmpl	$8100, %edx                     ## imm = 0x1FA4
	jne	LBB0_30
LBB0_27:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rbx
	movl	(%r14), %edx
	movslq	4(%r14), %r8
	imulq	$274877907, %r8, %rcx           ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	subl	%eax, %r8d
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_dev_info
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cdns_dp_phy_ops,4,2            ## @cdns_dp_phy_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create DisplayPort PHY\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"num_lanes"

	.comm	_DEFAULT_NUM_LANES,4,2          ## @DEFAULT_NUM_LANES
L_.str.2:                               ## @.str.2
	.asciz	"unsupported number of lanes: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"max_bit_rate"

	.comm	_DEFAULT_MAX_BIT_RATE,4,2       ## @DEFAULT_MAX_BIT_RATE
L_.str.4:                               ## @.str.4
	.asciz	"unsupported max bit rate: %dMbps\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
L_.str.5:                               ## @.str.5
	.asciz	"%d lanes, max bit rate %d.%03d Gbps\n"

	.no_dead_strip	_cdns_dp_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_dp_phy_probe
_cdns_dp_phy_probe:                     ; @cdns_dp_phy_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #24]
Lloh3:
	adrp	x2, _cdns_dp_phy_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _cdns_dp_phy_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_5:
Lloh9:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x20, #16]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x20, #8]
LBB0_9:
	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_10:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_device_property_read_u32
	cbz	w0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _DEFAULT_NUM_LANES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEFAULT_NUM_LANES@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_13
LBB0_12:
	ldr	w8, [x20]
LBB0_13:
	cmp	w8, #4
	b.hi	LBB0_25
; %bb.14:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #22
	tst	w9, w10
	b.eq	LBB0_25
; %bb.15:
	add	x22, x20, #4
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_device_property_read_u32
	cbz	w0, LBB0_17
; %bb.16:
Lloh18:
	adrp	x8, _DEFAULT_MAX_BIT_RATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEFAULT_MAX_BIT_RATE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x22]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x22]
LBB0_18:
	cmp	w8, #3239
	b.le	LBB0_22
; %bb.19:
	mov	w9, #5399
	cmp	w8, w9
	b.gt	LBB0_26
; %bb.20:
	cmp	w8, #3240
	b.eq	LBB0_29
; %bb.21:
	mov	w9, #4320
	b	LBB0_28
LBB0_22:
	cmp	w8, #2160
	b.eq	LBB0_29
; %bb.23:
	cmp	w8, #2430
	b.eq	LBB0_29
; %bb.24:
	cmp	w8, #2700
	b.eq	LBB0_29
	b	LBB0_30
LBB0_25:
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_31
LBB0_26:
	mov	w9, #5400
	cmp	w8, w9
	b.eq	LBB0_29
; %bb.27:
	mov	w9, #8100
LBB0_28:
	cmp	w8, w9
	b.ne	LBB0_30
LBB0_29:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh23:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh24:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x21, x0
	ldp	w2, w8, [x20]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w3, w9, w10
	mov	w9, #1000
	msub	w4, w3, w9, w8
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x21
	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_OR_ZERO
LBB0_30:
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_31:
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cdns_dp_phy_ops,4,2            ; @cdns_dp_phy_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create DisplayPort PHY\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"num_lanes"

	.comm	_DEFAULT_NUM_LANES,4,2          ; @DEFAULT_NUM_LANES
l_.str.2:                               ; @.str.2
	.asciz	"unsupported number of lanes: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"max_bit_rate"

	.comm	_DEFAULT_MAX_BIT_RATE,4,2       ; @DEFAULT_MAX_BIT_RATE
l_.str.4:                               ; @.str.4
	.asciz	"unsupported max bit rate: %dMbps\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
l_.str.5:                               ; @.str.5
	.asciz	"%d lanes, max bit rate %d.%03d Gbps\n"

	.no_dead_strip	_cdns_dp_phy_probe
.subsections_via_symbols
