	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_usbphyc_of_xlate
_stm32_usbphyc_of_xlate:                ## @stm32_usbphyc_of_xlate
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	movq	16(%r14), %rsi
	movq	16(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rbx
	movq	8(%rbx), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movl	(%rbx), %edx
	cmpl	$1, %edx
	je	LBB0_10
## %bb.5:
	testl	%edx, %edx
	jne	LBB0_14
## %bb.6:
	cmpl	$0, (%r14)
	jne	LBB0_11
	jmp	LBB0_14
LBB0_10:
	cmpl	$1, (%r14)
	jne	LBB0_11
## %bb.12:
	movq	8(%rax), %rdx
	movq	8(%r14), %rsi
	movq	(%rsi), %rsi
	testq	%rdx, %rdx
	js	LBB0_13
## %bb.15:
	cmpq	%rdx, %rsi
	je	LBB0_14
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_13:
	movq	%rax, %rdi
	callq	_stm32_usbphyc_switch_setup
	movq	8(%rbx), %rcx
LBB0_14:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find phy\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid number of cells for phy port%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"phy port1 already used\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_stm32_usbphyc_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_usbphyc_of_xlate
_stm32_usbphyc_of_xlate:                ; @stm32_usbphyc_of_xlate
	.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	x20, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x10, [x20, #16]
	ldr	x11, [x0, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x11]
	ldr	x8, [x21, #8]
	ldr	x12, [x8]
	cmp	x10, x12
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	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
	b	_ERR_PTR
LBB0_7:
	ldr	w9, [x21]
	cmp	w9, #1
	b.eq	LBB0_10
; %bb.8:
	cbnz	w9, LBB0_16
; %bb.9:
	ldr	w10, [x20]
	cbnz	w10, LBB0_14
	b	LBB0_16
LBB0_10:
	ldr	w10, [x20]
	cmp	w10, #1
	b.ne	LBB0_14
; %bb.11:
	ldr	x9, [x0, #8]
	ldr	x10, [x20, #8]
	ldr	x1, [x10]
	tbnz	x9, #63, LBB0_15
; %bb.12:
	cmp	x1, x9
	b.eq	LBB0_16
; %bb.13:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
	str	x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_15:
	bl	_stm32_usbphyc_switch_setup
	ldr	x8, [x21, #8]
LBB0_16:
	mov	x0, x8
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find phy\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid number of cells for phy port%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"phy port1 already used\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_stm32_usbphyc_of_xlate
.subsections_via_symbols
