	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdiobus_alloc_size             ## -- Begin function mdiobus_alloc_size
	.p2align	4, 0x90
_mdiobus_alloc_size:                    ## @mdiobus_alloc_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_NETDEV_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_ALIGN
	movq	%rax, %r14
	addq	%rbx, %rax
	testq	%rbx, %rbx
	movl	$24, %edi
	cmovneq	%rax, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_MDIOBUS_ALLOCATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rax, %rcx
	addq	%r14, %rcx
	movq	%rcx, 8(%rax)
LBB0_3:
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.4:
	movq	(%rax), %rdx
	xorl	%esi, %esi
	movq	_PHY_POLL@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ebx
	movl	%ebx, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rcx), %rbx
	cmpq	%rbx, %rsi
	jl	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_ALIGN,4,2               ## @NETDEV_ALIGN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MDIOBUS_ALLOCATED,4,2          ## @MDIOBUS_ALLOCATED
	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
	.comm	_PHY_POLL,4,2                   ## @PHY_POLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdiobus_alloc_size             ; -- Begin function mdiobus_alloc_size
	.p2align	2
_mdiobus_alloc_size:                    ; @mdiobus_alloc_size
	.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
Lloh0:
	adrp	x8, _NETDEV_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w21, #24
	mov	w0, #24
	bl	_ALIGN
	mov	x20, x0
	add	x8, x0, x19
	cmp	x19, #0
	csel	x0, x21, x8, eq
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _MDIOBUS_ALLOCATED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIOBUS_ALLOCATED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	cbz	x19, LBB0_3
; %bb.2:
	add	x8, x0, x20
	str	x8, [x0, #8]
LBB0_3:
Lloh9:
	adrp	x8, _PHY_MAX_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldr	x10, [x0]
Lloh11:
	adrp	x11, _PHY_POLL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _PHY_POLL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_5
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_ALIGN,4,2               ; @NETDEV_ALIGN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MDIOBUS_ALLOCATED,4,2          ; @MDIOBUS_ALLOCATED
	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
	.comm	_PHY_POLL,4,2                   ; @PHY_POLL
.subsections_via_symbols
