	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sh_mdio_init
LCPI0_0:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sh_mdio_init:                          ## @sh_mdio_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_PIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%r15), %rax
	movq	%rax, 24(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8,4,2,1]
	movups	%xmm0, (%r14)
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_bb_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	callq	_alloc_mdio_bitbang
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%r15, 24(%rax)
	movl	16(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movq	%rbx, %rax
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	shll	$2, %edi
	movl	(%rax), %esi
	callq	_kmalloc
	movq	(%r13), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.6:
	movq	_PHY_POLL@GOTPCREL(%rip), %rcx
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	cmpl	$2, (%rbx)
	movq	(%r13), %rdi
	jl	LBB0_9
## %bb.7:
	movl	$1, %eax
	movl	$32, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rsi
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%rsi,%rdx)
	movups	%xmm0, (%rsi,%rdx)
	incq	%rax
	movslq	(%rbx), %rsi
	movq	(%r13), %rdi
	addq	$32, %rdx
	cmpq	%rsi, %rax
	jl	LBB0_8
LBB0_9:
	callq	_mdiobus_register
	movq	(%r13), %rsi
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	8(%rsi), %rdi
	callq	_kfree
	movq	(%r13), %rdi
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	callq	_free_mdio_bitbang
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PIR,8,3                        ## @PIR
	.comm	_bb_ops,4,2                     ## @bb_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_mii"

	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%x"

	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
	.comm	_PHY_POLL,32,3                  ## @PHY_POLL
	.no_dead_strip	_sh_mdio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sh_mdio_init
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sh_mdio_init:                          ; @sh_mdio_init
	.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	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _PIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIR@GOTPAGEOFF]
	ldr	x9, [x21, #8]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x0, #24]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x0]
Lloh7:
	adrp	x8, _bb_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bb_ops@GOTPAGEOFF]
	str	x8, [x0, #16]!
	bl	_alloc_mdio_bitbang
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.2:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	str	x21, [x0, #24]
	ldr	w0, [x0, #16]
Lloh11:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_snprintf
Lloh16:
	adrp	x22, _PHY_MAX_ADDR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w8, #2
	ldr	w1, [x23]
	bl	_kmalloc
	mov	x8, x0
	ldr	x0, [x20]
	str	x8, [x0, #8]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.4:
Lloh18:
	adrp	x9, _PHY_POLL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PHY_POLL@GOTPAGEOFF]
	ldp	q0, q1, [x9]
	stp	q0, q1, [x8]
	ldr	w8, [x22]
	ldr	x0, [x20]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w8, #1
	mov	w10, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0, #8]
	add	x11, x11, x10
	ldp	q0, q1, [x9]
	stp	q0, q1, [x11]
	add	x8, x8, #1
	ldrsw	x11, [x22]
	ldr	x0, [x20]
	add	x10, x10, #32
	cmp	x8, x11
	b.lt	LBB0_6
LBB0_7:
	bl	_mdiobus_register
	mov	x22, x0
	ldr	x1, [x20]
	cbz	w0, LBB0_15
; %bb.8:
	ldr	x0, [x1, #8]
	bl	_kfree
	ldr	x0, [x20]
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_10:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	bl	_free_mdio_bitbang
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x22
	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_15:
	mov	x0, x21
	bl	_dev_set_drvdata
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PIR,8,3                        ; @PIR
	.comm	_bb_ops,4,2                     ; @bb_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_mii"

	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%x"

	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
	.comm	_PHY_POLL,32,3                  ; @PHY_POLL
	.no_dead_strip	_sh_mdio_init
.subsections_via_symbols
