	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_hwif_init               ## -- Begin function stmmac_hwif_init
	.p2align	4, 0x90
_stmmac_hwif_init:                      ## @stmmac_hwif_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %r12d
	movl	8(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_GMAC_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movl	%r12d, %eax
	orl	%r13d, %eax
	je	LBB0_37
## %bb.3:
	movq	_GMAC4_VERSION@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stmmac_get_id
LBB0_5:
	testl	%r12d, %r12d
	movq	_PTP_GMAC4_OFFSET@GOTPCREL(%rip), %rdi
	cmoveq	_PTP_GMAC3_X_OFFSET@GOTPCREL(%rip), %rdi
	movq	_MMC_GMAC4_OFFSET@GOTPCREL(%rip), %rcx
	cmoveq	_MMC_GMAC3_X_OFFSET@GOTPCREL(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r14)
	movq	16(%r14), %rdx
	movq	48(%r14), %rsi
	movq	(%rdi), %rax
	addq	%rdx, %rax
	movq	%rax, 32(%r14)
	addq	(%rcx), %rdx
	movq	%rdx, 24(%r14)
	movq	16(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	*%r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_stmmac_hw@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_34
## %bb.11:
	movl	%r13d, %edx
	movq	(%r15), %r15
	movl	%eax, %eax
	incq	%rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=1
	decq	%rax
	cmpq	$1, %rax
	jbe	LBB0_34
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %ecx
	imulq	$112, %rcx, %r13
	cmpl	(%r15,%r13), %ebx
	jne	LBB0_33
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	4(%r15,%r13), %r12d
	jne	LBB0_33
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	8(%r15,%r13), %edx
	jne	LBB0_33
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rcx
	cmpq	16(%r15,%r13), %rcx
	jl	LBB0_33
## %bb.16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	48(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	104(%r15,%r13), %rax
LBB0_18:
	movq	%rax, 48(%rcx)
	movq	40(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	96(%r15,%r13), %rax
LBB0_20:
	movq	%rax, 40(%rcx)
	movq	32(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	88(%r15,%r13), %rax
LBB0_22:
	movq	%rax, 32(%rcx)
	movq	24(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	80(%r15,%r13), %rax
LBB0_24:
	movq	%rax, 24(%rcx)
	movq	16(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	72(%r15,%r13), %rax
LBB0_26:
	movq	%rax, 16(%rcx)
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	64(%r15,%r13), %rax
LBB0_28:
	movq	%rax, 8(%rcx)
	movq	(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	56(%r15,%r13), %rax
LBB0_30:
	movq	%rax, (%rcx)
	movq	%rcx, 40(%r14)
	movdqu	40(%r15,%r13), %xmm0
	movq	16(%r14), %xmm1                 ## xmm1 = mem[0],zero
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 24(%r14)
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	movq	%r14, %rdi
	callq	*24(%r15,%r13)
	testl	%eax, %eax
	jne	LBB0_36
LBB0_32:
	movl	32(%r15,%r13), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_34:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_35
LBB0_7:
	movl	8(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_35:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_36:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_VERSION,4,2               ## @GMAC_VERSION
	.comm	_GMAC4_VERSION,4,2              ## @GMAC4_VERSION
	.comm	_PTP_GMAC4_OFFSET,8,3           ## @PTP_GMAC4_OFFSET
	.comm	_PTP_GMAC3_X_OFFSET,8,3         ## @PTP_GMAC3_X_OFFSET
	.comm	_MMC_GMAC4_OFFSET,8,3           ## @MMC_GMAC4_OFFSET
	.comm	_MMC_GMAC3_X_OFFSET,8,3         ## @MMC_GMAC3_X_OFFSET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stmmac_hw,8,3                  ## @stmmac_hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find HW IF (id=0x%x, gmac=%d/%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_hwif_init               ; -- Begin function stmmac_hwif_init
	.p2align	2
_stmmac_hwif_init:                      ; @stmmac_hwif_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldp	w27, w21, [x8]
	ldr	w22, [x8, #8]
	cbz	w22, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GMAC_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_VERSION@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	orr	w8, w21, w27
	cbz	w8, LBB0_36
; %bb.3:
Lloh2:
	adrp	x8, _GMAC4_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GMAC4_VERSION@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stmmac_get_id
	mov	x23, x0
LBB0_5:
	str	x23, [x19]
Lloh4:
	adrp	x8, _PTP_GMAC4_OFFSET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PTP_GMAC4_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x10, _PTP_GMAC3_X_OFFSET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PTP_GMAC3_X_OFFSET@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x10, x8, eq
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x19, #32]
Lloh8:
	adrp	x8, _MMC_GMAC4_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMC_GMAC4_OFFSET@GOTPAGEOFF]
Lloh10:
	adrp	x10, _MMC_GMAC3_X_OFFSET@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MMC_GMAC3_X_OFFSET@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x19, #24]
	ldr	x8, [x19, #48]
	ldr	x24, [x8, #16]
	cbz	x24, LBB0_32
; %bb.6:
	mov	x0, x19
	blr	x24
	mov	x20, x0
	cbz	x0, LBB0_33
LBB0_7:
Lloh12:
	adrp	x25, _stmmac_hw@GOTPAGE
Lloh13:
	ldr	x25, [x25, _stmmac_hw@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.8:
	ldr	x25, [x25]
	mov	w8, w0
	add	x8, x8, #1
	mov	w9, #112
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	x8, x8, #1
	cmp	x8, #1
	b.ls	LBB0_31
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w26, w8, #2
	umull	x10, w26, w9
	ldr	w10, [x25, x10]
	cmp	w22, w10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	madd	x10, x26, x9, x25
	ldr	w10, [x10, #4]
	cmp	w21, w10
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	madd	x10, x26, x9, x25
	ldr	w10, [x10, #8]
	cmp	w27, w10
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x19]
	madd	x11, x26, x9, x25
	ldr	x11, [x11, #16]
	cmp	x10, x11
	b.lt	LBB0_9
; %bb.14:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_16
; %bb.15:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #104]
LBB0_16:
	str	x8, [x20, #48]
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_18
; %bb.17:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #96]
LBB0_18:
	str	x8, [x20, #40]
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_20
; %bb.19:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #88]
LBB0_20:
	str	x8, [x20, #32]
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_22
; %bb.21:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #80]
LBB0_22:
	str	x8, [x20, #24]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_24
; %bb.23:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #72]
LBB0_24:
	str	x8, [x20, #16]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_26
; %bb.25:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #64]
LBB0_26:
	str	x8, [x20, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_28
; %bb.27:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #56]
LBB0_28:
	str	x8, [x20]
	str	x20, [x19, #40]
	add	x8, x19, #16
	mov	w9, #112
	madd	x9, x26, x9, x25
	ldur	q0, [x9, #40]
	ld1r.2d	{ v1 }, [x8]
	add.2d	v0, v0, v1
	stur	q0, [x19, #24]
	cbnz	x24, LBB0_30
; %bb.29:
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_35
LBB0_30:
	mov	w0, #0
	mov	w8, #112
	madd	x8, x26, x8, x25
	ldr	w8, [x8, #32]
	str	w8, [x19, #12]
	b	LBB0_35
LBB0_31:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_34
LBB0_32:
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	mov	x20, x0
	cbnz	x0, LBB0_7
LBB0_33:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_35:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_36:
	mov	x23, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_VERSION,4,2               ; @GMAC_VERSION
	.comm	_GMAC4_VERSION,4,2              ; @GMAC4_VERSION
	.comm	_PTP_GMAC4_OFFSET,8,3           ; @PTP_GMAC4_OFFSET
	.comm	_PTP_GMAC3_X_OFFSET,8,3         ; @PTP_GMAC3_X_OFFSET
	.comm	_MMC_GMAC4_OFFSET,8,3           ; @MMC_GMAC4_OFFSET
	.comm	_MMC_GMAC3_X_OFFSET,8,3         ; @MMC_GMAC3_X_OFFSET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stmmac_hw,8,3                  ; @stmmac_hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find HW IF (id=0x%x, gmac=%d/%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
