	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcm_usb_phy_dvr_init
_brcm_usb_phy_dvr_init:                 ## @brcm_usb_phy_dvr_init
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	$0, 32(%rbx)
	xorl	%edi, %edi
	jmp	LBB0_3
LBB0_1:
	movq	32(%rbx), %rdi
LBB0_3:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_4
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.5:
	movq	_brcm_usb_phy_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	8(%rbx), %rax
	movq	_BRCM_USB_PHY_2_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movq	%r12, 8(%rax,%rsi)
	movq	%rdx, (%rax,%rsi)
	movq	(%rcx), %rsi
	shlq	$4, %rsi
	addq	%rax, %rsi
	movq	%r12, %rdi
	callq	_phy_set_drvdata
LBB0_9:
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.10:
	movq	_brcm_usb_phy_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	8(%rbx), %rax
	movq	_BRCM_USB_PHY_3_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movq	%r12, 8(%rax,%rsi)
	movq	%rdx, (%rax,%rsi)
	movq	(%rcx), %rsi
	shlq	$4, %rsi
	addq	%rax, %rsi
	movq	%r12, %rdi
	callq	_phy_set_drvdata
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	$0, (%rbx)
	xorl	%edi, %edi
	jmp	LBB0_15
LBB0_13:
	movq	(%rbx), %rdi
LBB0_15:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sw_usb"

L_.str.1:                               ## @.str.1
	.asciz	"Clock not found in Device Tree\n"

	.comm	_brcm_usb_phy_ops,4,2           ## @brcm_usb_phy_ops
L_.str.2:                               ## @.str.2
	.asciz	"failed to create EHCI/OHCI PHY\n"

	.comm	_BRCM_USB_PHY_2_0,8,3           ## @BRCM_USB_PHY_2_0
L_.str.3:                               ## @.str.3
	.asciz	"failed to create XHCI PHY\n"

	.comm	_BRCM_USB_PHY_3_0,8,3           ## @BRCM_USB_PHY_3_0
L_.str.4:                               ## @.str.4
	.asciz	"sw_usb3"

L_.str.5:                               ## @.str.5
	.asciz	"USB3.0 clock not found in Device Tree\n"

	.no_dead_strip	_brcm_usb_phy_dvr_init
.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_dvr_init
_brcm_usb_phy_dvr_init:                 ; @brcm_usb_phy_dvr_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_of_clk_get_by_name
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, #0
	str	xzr, [x19, #32]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_14
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #32]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_14
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.4:
Lloh4:
	adrp	x2, _brcm_usb_phy_ops@GOTPAGE
Lloh5:
	ldr	x2, [x2, _brcm_usb_phy_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, #0
	bl	_devm_phy_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _BRCM_USB_PHY_2_0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRCM_USB_PHY_2_0@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x11, x8, x10, lsl #4
	stp	x10, x22, [x11]
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #4
	mov	x0, x22
	bl	_phy_set_drvdata
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.8:
Lloh10:
	adrp	x2, _brcm_usb_phy_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _brcm_usb_phy_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, #0
	bl	_devm_phy_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_11:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _BRCM_USB_PHY_3_0@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRCM_USB_PHY_3_0@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x11, x8, x10, lsl #4
	stp	x10, x22, [x11]
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #4
	mov	x0, x22
	bl	_phy_set_drvdata
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_clk_get_by_name
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, #0
	str	xzr, [x19]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
LBB0_15:
	ldr	x0, [x19]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_14
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sw_usb"

l_.str.1:                               ; @.str.1
	.asciz	"Clock not found in Device Tree\n"

	.comm	_brcm_usb_phy_ops,4,2           ; @brcm_usb_phy_ops
l_.str.2:                               ; @.str.2
	.asciz	"failed to create EHCI/OHCI PHY\n"

	.comm	_BRCM_USB_PHY_2_0,8,3           ; @BRCM_USB_PHY_2_0
l_.str.3:                               ; @.str.3
	.asciz	"failed to create XHCI PHY\n"

	.comm	_BRCM_USB_PHY_3_0,8,3           ; @BRCM_USB_PHY_3_0
l_.str.4:                               ; @.str.4
	.asciz	"sw_usb3"

l_.str.5:                               ; @.str.5
	.asciz	"USB3.0 clock not found in Device Tree\n"

	.no_dead_strip	_brcm_usb_phy_dvr_init
.subsections_via_symbols
