	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcm_usb_phy_probe
_brcm_usb_phy_probe:                    ## @brcm_usb_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmstb_get_family_id
	leaq	16(%r13), %rbx
	movl	%eax, 56(%r13)
	xorl	%eax, %eax
	callq	_brcmstb_get_product_id
	movl	%eax, 52(%r13)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_brcm_usb_set_family_map
	movl	48(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_13:
	leaq	24(%r13), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	leaq	20(%r13), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	movq	_USB_CTLR_MODE_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
## %bb.14:
	movq	_brcm_dr_mode_to_name@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	_name_to_value
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	$1, (%r13)
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	$1, 4(%r13)
LBB0_19:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_brcm_usb_phy_dvr_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.20:
	movq	%r13, %rdi
	addq	$64, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_brcm_usb_init_ipp
	movl	16(%r13), %eax
	movq	_USB_CTLR_MODE_DRD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.21:
	movq	_brcm_usb_phy_attrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
LBB0_22:
	movq	_brcm_usb_phy_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_24:
	cmpl	$0, (%r13)
	je	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	callq	_brcm_usb_uninit_xhci
LBB0_26:
	cmpl	$0, 4(%r13)
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_brcm_usb_uninit_eohci
LBB0_28:
	movq	%r15, %rdi
	callq	_brcm_usb_uninit_common
	movl	12(%r13), %edi
	callq	_clk_disable
	movl	8(%r13), %edi
	callq	_clk_disable
	movq	_brcm_usb_phy_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %r12d
	jmp	LBB0_9
	.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	"Best mapping table is for %s\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"can't get USB_CTRL base address\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"can't map CTRL register space\n"

L_.str.3:                               ## @.str.3
	.asciz	"can't map XHCI EC register space\n"

L_.str.4:                               ## @.str.4
	.asciz	"brcm,ipp"

L_.str.5:                               ## @.str.5
	.asciz	"brcm,ioc"

	.comm	_USB_CTLR_MODE_HOST,4,2         ## @USB_CTLR_MODE_HOST
L_.str.6:                               ## @.str.6
	.asciz	"dr_mode"

	.comm	_brcm_dr_mode_to_name,8,3       ## @brcm_dr_mode_to_name
L_.str.7:                               ## @.str.7
	.asciz	"brcm,has-xhci"

L_.str.8:                               ## @.str.8
	.asciz	"brcm,has-eohci"

	.comm	_USB_CTLR_MODE_DRD,4,2          ## @USB_CTLR_MODE_DRD
	.comm	_brcm_usb_phy_attrs,8,3         ## @brcm_usb_phy_attrs
	.comm	_brcm_usb_phy_group,4,2         ## @brcm_usb_phy_group
L_.str.9:                               ## @.str.9
	.asciz	"Error creating sysfs attributes\n"

	.comm	_brcm_usb_phy_xlate,4,2         ## @brcm_usb_phy_xlate
	.no_dead_strip	_brcm_usb_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcm_usb_phy_probe
_brcm_usb_phy_probe:                    ; @brcm_usb_phy_probe
	.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	x22, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	bl	_brcmstb_get_family_id
	add	x21, x20, #16
	str	w0, [x20, #56]
	bl	_brcmstb_get_product_id
	str	w0, [x20, #52]
	mov	x0, x21
	bl	_brcm_usb_set_family_map
	ldr	w2, [x20, #48]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh5:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_12:
	add	x2, x20, #24
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	add	x2, x20, #20
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
Lloh21:
	adrp	x8, _USB_CTLR_MODE_HOST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _USB_CTLR_MODE_HOST@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_string
	cbnz	w0, LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _brcm_dr_mode_to_name@GOTPAGE
Lloh27:
	ldr	x8, [x8, _brcm_dr_mode_to_name@GOTPAGEOFF]
Lloh28:
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x23
	mov	x3, x21
	bl	_name_to_value
LBB0_14:
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x20]
LBB0_16:
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_brcm_usb_phy_dvr_init
	cbnz	w0, LBB0_8
; %bb.19:
	add	x0, x20, #64
	bl	_mutex_init
	mov	x0, x21
	bl	_brcm_usb_init_ipp
	ldr	w8, [x20, #16]
Lloh33:
	adrp	x9, _USB_CTLR_MODE_DRD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _USB_CTLR_MODE_DRD@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_21
; %bb.20:
Lloh36:
	adrp	x8, _brcm_usb_phy_attrs@GOTPAGE
Lloh37:
	ldr	x8, [x8, _brcm_usb_phy_attrs@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	xzr, [x8, #8]
LBB0_21:
Lloh39:
	adrp	x1, _brcm_usb_phy_group@GOTPAGE
Lloh40:
	ldr	x1, [x1, _brcm_usb_phy_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	cbz	w0, LBB0_23
; %bb.22:
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_23:
	ldr	w8, [x20]
	cbz	w8, LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_brcm_usb_uninit_xhci
LBB0_25:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_27
; %bb.26:
	mov	x0, x21
	bl	_brcm_usb_uninit_eohci
LBB0_27:
	mov	x0, x21
	bl	_brcm_usb_uninit_common
	ldr	w0, [x20, #12]
	bl	_clk_disable
	ldr	w0, [x20, #8]
	bl	_clk_disable
Lloh43:
	adrp	x8, _brcm_usb_phy_xlate@GOTPAGE
Lloh44:
	ldr	x8, [x8, _brcm_usb_phy_xlate@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.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	"Best mapping table is for %s\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"can't get USB_CTRL base address\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"can't map CTRL register space\n"

l_.str.3:                               ; @.str.3
	.asciz	"can't map XHCI EC register space\n"

l_.str.4:                               ; @.str.4
	.asciz	"brcm,ipp"

l_.str.5:                               ; @.str.5
	.asciz	"brcm,ioc"

	.comm	_USB_CTLR_MODE_HOST,4,2         ; @USB_CTLR_MODE_HOST
l_.str.6:                               ; @.str.6
	.asciz	"dr_mode"

	.comm	_brcm_dr_mode_to_name,8,3       ; @brcm_dr_mode_to_name
l_.str.7:                               ; @.str.7
	.asciz	"brcm,has-xhci"

l_.str.8:                               ; @.str.8
	.asciz	"brcm,has-eohci"

	.comm	_USB_CTLR_MODE_DRD,4,2          ; @USB_CTLR_MODE_DRD
	.comm	_brcm_usb_phy_attrs,8,3         ; @brcm_usb_phy_attrs
	.comm	_brcm_usb_phy_group,4,2         ; @brcm_usb_phy_group
l_.str.9:                               ; @.str.9
	.asciz	"Error creating sysfs attributes\n"

	.comm	_brcm_usb_phy_xlate,4,2         ; @brcm_usb_phy_xlate
	.no_dead_strip	_brcm_usb_phy_probe
.subsections_via_symbols
