	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_phy_get_param
_xgene_phy_get_param:                   ## @xgene_phy_get_param
	.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
	movl	%r9d, %r15d
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	(%rdi), %edi
	callq	_of_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.2:
	movl	%r12d, %r8d
	cmpl	$1, %r12d
	jne	LBB0_11
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.5:
	movl	%r12d, %r8d
	cmpl	$1, %r12d
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_11:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$2863311531, %r9d               ## imm = 0xAAAAAAAB
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	imulq	%r9, %rcx
	shrq	$33, %rcx
	leal	(%rcx,%rcx,2), %ecx
	movl	%esi, %edi
	subl	%ecx, %edi
	movl	%edx, %ecx
	imulq	%r9, %rcx
	shrq	$33, %rcx
	leal	(%rcx,%rcx,2), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	(%r14,%rax,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	movl	(%r14,%rdi,4), %eax
	movl	%eax, 4(%rbx,%rdx,4)
	addq	$2, %rdx
	addl	$2, %esi
	cmpq	%rdx, %r10
	jne	LBB0_12
LBB0_13:
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movl	%edx, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rcx
	shrq	$33, %rcx
	leal	(%rcx,%rcx,2), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	(%r14,%rcx,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	jmp	LBB0_15
LBB0_7:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdi,4), %eax
	movl	4(%rbx,%rdi,4), %ecx
	cltd
	idivl	%r15d
	movl	%eax, (%rbx,%rdi,4)
	movl	%ecx, %eax
	cltd
	idivl	%r15d
	movl	%eax, 4(%rbx,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_15
## %bb.10:
	movl	(%rbx,%rdi,4), %eax
	cltd
	idivl	%r15d
	movl	%eax, (%rbx,%rdi,4)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xgene_phy_get_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_phy_get_param
_xgene_phy_get_param:                   ; @xgene_phy_get_param
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	ldr	w0, [x0]
	bl	_of_property_read_u32_array
	cmp	w22, #1
	cbz	w0, LBB0_4
; %bb.1:
	b.lt	LBB0_12
; %bb.2:
	mov	x8, #0
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	mov	x10, #-12
	mov	w11, w22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	umulh	x12, x8, x9
	lsr	x12, x12, #1
	mul	x12, x12, x10
	ldr	w12, [x21, x12]
	str	w12, [x19], #4
	add	x8, x8, #1
	add	x21, x21, #4
	subs	x11, x11, #1
	b.ne	LBB0_3
	b	LBB0_12
LBB0_4:
	b.lt	LBB0_12
; %bb.5:
	mov	w8, w22
	cmp	w22, #4
	b.hs	LBB0_7
; %bb.6:
	mov	x9, #0
	b	LBB0_10
LBB0_7:
	and	x9, x8, #0xfffffffc
	add	x10, x19, #8
	mov	x11, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w13, [x10, #-8]
	ldp	w14, w15, [x10]
	sdiv	w12, w12, w20
	sdiv	w13, w13, w20
	sdiv	w14, w14, w20
	stp	w12, w13, [x10, #-8]
	sdiv	w12, w15, w20
	stp	w14, w12, [x10], #16
	subs	x11, x11, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_10:
	add	x10, x19, x9, lsl #2
	sub	x8, x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10]
	sdiv	w9, w9, w20
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xgene_phy_get_param
.subsections_via_symbols
