	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88172a_init_mdio
_ax88172a_init_mdio:                    ## @ax88172a_init_mdio
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 32(%rax)
	movq	_asix_mdio_bus_read@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_asix_mdio_bus_write@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	movl	8(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	callq	_snprintf
	movq	(%r15), %rdi
	callq	_mdiobus_register
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
	movq	(%r15), %rdi
	callq	_mdiobus_free
	jmp	LBB0_5
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	(%r15), %rax
	movl	8(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_info
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate MDIO bus\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_asix_mdio_bus_read,4,2         ## @asix_mdio_bus_read
	.comm	_asix_mdio_bus_write,4,2        ## @asix_mdio_bus_write
L_.str.1:                               ## @.str.1
	.asciz	"Asix MDIO Bus"

	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"usb-%03d:%03d"

L_.str.3:                               ## @.str.3
	.asciz	"Could not register MDIO bus\n"

L_.str.4:                               ## @.str.4
	.asciz	"registered mdio bus %s\n"

	.no_dead_strip	_ax88172a_init_mdio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88172a_init_mdio
_ax88172a_init_mdio:                    ; @ax88172a_init_mdio
	.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	x19, x0
	ldr	x21, [x0, #16]
	bl	_mdiobus_alloc
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	str	x19, [x0, #32]
Lloh0:
	adrp	x8, _asix_mdio_bus_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _asix_mdio_bus_read@GOTPAGEOFF]
Lloh2:
	adrp	x9, _asix_mdio_bus_write@GOTPAGE
Lloh3:
	ldr	x9, [x9, _asix_mdio_bus_write@GOTPAGEOFF]
	stp	x9, x8, [x0, #16]
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
Lloh6:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
	ldr	w0, [x0, #8]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	w3, [x9]
	ldr	w4, [x8]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	ldr	x0, [x21]
	bl	_mdiobus_register
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_4
; %bb.2:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	ldr	x0, [x21]
	bl	_mdiobus_free
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
	ldr	w2, [x8, #8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_info
LBB0_5:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate MDIO bus\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_asix_mdio_bus_read,4,2         ; @asix_mdio_bus_read
	.comm	_asix_mdio_bus_write,4,2        ; @asix_mdio_bus_write
l_.str.1:                               ; @.str.1
	.asciz	"Asix MDIO Bus"

	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"usb-%03d:%03d"

l_.str.3:                               ; @.str.3
	.asciz	"Could not register MDIO bus\n"

l_.str.4:                               ; @.str.4
	.asciz	"registered mdio bus %s\n"

	.no_dead_strip	_ax88172a_init_mdio
.subsections_via_symbols
