	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltq_rcu_usb2_of_parse
_ltq_rcu_usb2_of_parse:                 ## @ltq_rcu_usb2_of_parse
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 24(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_syscon_node_to_regmap
	movl	%eax, 40(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	40(%rbx), %edi
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_address
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%rax), %edi
	callq	___be32_to_cpu
	movq	%rax, 32(%rbx)
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_address
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %edi
	callq	___be32_to_cpu
	movq	%rax, 16(%rbx)
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	8(%rbx), %edi
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_shared
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movl	4(%rbx), %edi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movl	4(%rbx), %edi
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_optional
	movl	%eax, (%rbx)
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to lookup RCU regmap\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get RCU PHY reg offset\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get RCU ANA CFG1 reg offset\n"

L_.str.3:                               ## @.str.3
	.asciz	"phy"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to get USB phy gate clk\n"

L_.str.5:                               ## @.str.5
	.asciz	"ctrl"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.6:                               ## @.str.6
	.asciz	"failed to get 'ctrl' reset\n"

	.no_dead_strip	_ltq_rcu_usb2_of_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltq_rcu_usb2_of_parse
_ltq_rcu_usb2_of_parse:                 ; @ltq_rcu_usb2_of_parse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #48]
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #24]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_syscon_node_to_regmap
	str	w0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #40]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldr	x0, [x20]
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_of_get_address
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x0]
	bl	___be32_to_cpu
	str	x0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x0, [x20]
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_of_get_address
	cbz	x0, LBB0_14
; %bb.6:
	ldr	w0, [x0]
	bl	___be32_to_cpu
	str	x0, [x19, #16]
LBB0_7:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_10:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_shared
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.11:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.12:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_13:
	ldr	w0, [x19, #4]
	b	LBB0_2
LBB0_14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_optional
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to lookup RCU regmap\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get RCU PHY reg offset\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get RCU ANA CFG1 reg offset\n"

l_.str.3:                               ; @.str.3
	.asciz	"phy"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to get USB phy gate clk\n"

l_.str.5:                               ; @.str.5
	.asciz	"ctrl"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.6:                               ; @.str.6
	.asciz	"failed to get 'ctrl' reset\n"

	.no_dead_strip	_ltq_rcu_usb2_of_parse
.subsections_via_symbols
