	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax_mii_init
_ax_mii_init:                           ## @ax_mii_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_to_ax_dev
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	_bb_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_AX_MEMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r12), %rax
	movq	%rax, 16(%rbx)
	callq	_alloc_mdio_bitbang
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movl	(%r14), %ecx
	movl	%ecx, 12(%rax)
	movl	8(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	(%rbx), %rdi
	callq	_mdiobus_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_free_mdio_bitbang
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bb_ops,4,2                     ## @bb_ops
	.comm	_AX_MEMR,8,3                    ## @AX_MEMR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ax88796_mii_bus"

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

	.no_dead_strip	_ax_mii_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax_mii_init
_ax_mii_init:                           ; @ax_mii_init
	.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, x0
	ldr	w0, [x0]
	bl	_to_platform_device
	mov	x21, x0
	mov	x0, x20
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x20
	bl	_to_ax_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _bb_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bb_ops@GOTPAGEOFF]
	str	x8, [x0, #8]!
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _AX_MEMR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AX_MEMR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #16]
	bl	_alloc_mdio_bitbang
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	w8, [x20]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
Lloh7:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x3, [x21]
	ldr	w4, [x21, #8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	ldr	x0, [x19]
	bl	_mdiobus_register
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_free_mdio_bitbang
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_bb_ops,4,2                     ; @bb_ops
	.comm	_AX_MEMR,8,3                    ; @AX_MEMR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ax88796_mii_bus"

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

	.no_dead_strip	_ax_mii_init
.subsections_via_symbols
