	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_comphy_get_mode
_mvebu_comphy_get_mode:                 ## @mvebu_comphy_get_mode
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_mvebu_comphy_cp110_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movq	_PHY_MODE_INVALID@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	%r12d, (%rdx)
	je	LBB0_15
## %bb.1:
	movq	_mvebu_comphy_cp110_modes@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	jle	LBB0_2
## %bb.6:
	movq	_PHY_MODE_PCIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	(%rdx), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	addq	$24, %rcx
	cmpq	%rdx, %rdi
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r13d, 4(%rcx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r12d, 8(%rcx)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r14d, 12(%rcx)
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r12d, %r9d
	jne	LBB0_12
LBB0_3:
	cmpl	%eax, %edx
	jne	LBB0_4
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_15:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%edx, %edx
                                        ## implicit-def: $rcx
	cmpl	%eax, %edx
	je	LBB0_13
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	movl	16(%rcx), %ecx
	jmp	LBB0_15
LBB0_14:
	movl	20(%rcx), %ecx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_mvebu_comphy_cp110_modes,8,3   ## @mvebu_comphy_cp110_modes
	.comm	_PHY_MODE_PCIE,4,2              ## @PHY_MODE_PCIE
	.comm	_PHY_MODE_INVALID,4,2           ## @PHY_MODE_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mvebu_comphy_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_comphy_get_mode
_mvebu_comphy_get_mode:                 ; @mvebu_comphy_get_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _mvebu_comphy_cp110_modes@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mvebu_comphy_cp110_modes@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
Lloh2:
	adrp	x8, _PHY_MODE_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHY_MODE_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x9, #0
Lloh5:
	adrp	x8, _PHY_MODE_PCIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_MODE_PCIE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	ldr	x8, [x24]
	mov	w11, w0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x8, x8, #24
	cmp	x11, x9
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	cmp	w12, w23
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x8, #4]
	cmp	w12, w22
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x8, #8]
	cmp	w12, w21
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x8, #12]
	cmp	w12, w20
	ccmp	w10, w21, #4, ne
	b.ne	LBB0_4
; %bb.9:
	cmp	w9, w0
	b.ne	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w9, #0
                                        ; implicit-def: $x8
	cmp	w9, w0
	b.eq	LBB0_10
LBB0_13:
	cbz	w19, LBB0_15
; %bb.14:
	ldr	w0, [x8, #16]
	b	LBB0_11
LBB0_15:
	ldr	w0, [x8, #20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mvebu_comphy_cp110_modes,8,3   ; @mvebu_comphy_cp110_modes
	.comm	_PHY_MODE_PCIE,4,2              ; @PHY_MODE_PCIE
	.comm	_PHY_MODE_INVALID,4,2           ; @PHY_MODE_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mvebu_comphy_get_mode
.subsections_via_symbols
