	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehci_oxnas_drv_probe
_ehci_oxnas_drv_probe:                  ## @ehci_oxnas_drv_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_usb_disabled
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_2:
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.4:
	cmpq	$0, (%r13)
	je	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_dev_name
	movq	_oxnas_hc_driver@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_usb_create_hcd
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.9:
	movl	-48(%rbp), %eax
	movl	%eax, 20(%r15)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, 16(%r15)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	8(%r15), %rdi
	jmp	LBB0_13
LBB0_3:
	movq	%r13, 8(%r13)
	cmpq	$0, (%r13)
	jne	LBB0_6
LBB0_5:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%rax, (%r13)
	jmp	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_11:
	movq	%r15, %rdi
	callq	_hcd_to_ehci
	movq	8(%rax), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movq	%rax, 48(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movq	%rax, 64(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	56(%r14), %rdi
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rdi
LBB0_13:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_35:
	movq	%r15, %rdi
	callq	_usb_put_hcd
LBB0_36:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	$0, 48(%r14)
	je	LBB0_21
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_34
LBB0_21:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_reset_control_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_23
## %bb.24:
	movq	%rbx, 40(%r14)
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_reset_control_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_23
## %bb.25:
	movq	%rbx, 32(%r14)
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_reset_control_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
LBB0_23:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_30:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_clk_put
	jmp	LBB0_32
LBB0_19:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_32:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:
	callq	_clk_put
LBB0_34:
	movq	(%r14), %rdi
	callq	_clk_put
	jmp	LBB0_35
LBB0_26:
	movq	%rbx, 24(%r14)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:
	movl	%eax, %r12d
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_hcd_to_ehci
	movq	8(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	callq	_start_oxnas_usb_ehci
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_usb_add_hcd
	testl	%eax, %eax
	je	LBB0_36
## %bb.29:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_stop_oxnas_usb_ehci
	movl	%r12d, %ebx
	jmp	LBB0_30
LBB0_27:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_oxnas_hc_driver,4,2            ## @oxnas_hc_driver
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devm_ioremap_resource failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"oxsemi,ehci_use_pllb"

L_.str.2:                               ## @.str.2
	.asciz	"oxsemi,ehci_use_phya"

L_.str.3:                               ## @.str.3
	.asciz	"oxsemi,sys-ctrl"

L_.str.4:                               ## @.str.4
	.asciz	"usb"

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

L_.str.6:                               ## @.str.6
	.asciz	"phyref"

L_.str.7:                               ## @.str.7
	.asciz	"host"

L_.str.8:                               ## @.str.8
	.asciz	"phya"

L_.str.9:                               ## @.str.9
	.asciz	"phyb"

L_.str.10:                              ## @.str.10
	.asciz	"irq_of_parse_and_map failed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_ehci_oxnas_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehci_oxnas_drv_probe
_ehci_oxnas_drv_probe:                  ; @ehci_oxnas_drv_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	x21, x0
	ldr	x22, [x0, #16]
	bl	_usb_disabled
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x0, _oxnas_hc_driver@GOTPAGE
Lloh3:
	ldr	x0, [x0, _oxnas_hc_driver@GOTPAGEOFF]
	mov	x1, x21
	bl	_usb_create_hcd
	cbz	x0, LBB0_11
; %bb.6:
	mov	x19, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_of_address_to_resource
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.7:
	ldr	w8, [sp, #8]
	str	w8, [x19, #20]
	add	x0, sp, #8
	bl	_resource_size
	str	w0, [x19, #16]
	add	x1, sp, #8
	mov	x0, x21
	bl	_devm_ioremap_resource
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_16
LBB0_9:
	str	x21, [x21, #8]
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
LBB0_10:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	str	x0, [x21]
	b	LBB0_5
LBB0_11:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_hcd_to_ehci
	ldr	x20, [x0, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	x0, [x20, #48]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	x0, [x20, #64]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #56]
	b	LBB0_16
LBB0_14:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_of_clk_get_by_name
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.15:
	ldr	x0, [x20]
LBB0_16:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_17:
	mov	x0, x19
	bl	_usb_put_hcd
LBB0_18:
	mov	x0, x23
	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_19:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_22
; %bb.20:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_of_clk_get_by_name
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_29
; %bb.21:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_33
LBB0_22:
	stp	xzr, xzr, [x20, #8]
LBB0_23:
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_devm_reset_control_get
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.24:
	str	x23, [x20, #40]
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_devm_reset_control_get
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_26
; %bb.25:
	str	x23, [x20, #32]
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_devm_reset_control_get
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_34
LBB0_26:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x23, x0
LBB0_27:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_31
; %bb.28:
	bl	_clk_put
	b	LBB0_31
LBB0_29:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_of_clk_get_by_name
	str	x0, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.30:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x23, x0
LBB0_31:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_clk_put
LBB0_33:
	ldr	x0, [x20]
	bl	_clk_put
	b	LBB0_17
LBB0_34:
	str	x23, [x20, #24]
	mov	x0, x22
	mov	w1, #0
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_37
; %bb.35:
	mov	x22, x0
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_hcd_to_ehci
	ldr	x8, [x19, #8]
	str	x8, [x0]
	mov	x0, x20
	bl	_start_oxnas_usb_ehci
Lloh26:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_usb_add_hcd
	mov	x23, x0
	cbz	w0, LBB0_18
; %bb.36:
	mov	x0, x20
	bl	_stop_oxnas_usb_ehci
	b	LBB0_27
LBB0_37:
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _EBUSY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_oxnas_hc_driver,4,2            ; @oxnas_hc_driver
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devm_ioremap_resource failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"oxsemi,ehci_use_pllb"

l_.str.2:                               ; @.str.2
	.asciz	"oxsemi,ehci_use_phya"

l_.str.3:                               ; @.str.3
	.asciz	"oxsemi,sys-ctrl"

l_.str.4:                               ; @.str.4
	.asciz	"usb"

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

l_.str.6:                               ; @.str.6
	.asciz	"phyref"

l_.str.7:                               ; @.str.7
	.asciz	"host"

l_.str.8:                               ; @.str.8
	.asciz	"phya"

l_.str.9:                               ; @.str.9
	.asciz	"phyb"

l_.str.10:                              ; @.str.10
	.asciz	"irq_of_parse_and_map failed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_ehci_oxnas_drv_probe
.subsections_via_symbols
