	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mdiobus_probe
_octeon_mdiobus_probe:                  ## @octeon_mdiobus_probe
	.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
	movq	%rdi, %r15
	movl	$16, %esi
	callq	_devm_mdiobus_alloc_size
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	24(%r13), %r14
	movq	%r13, 8(%r14)
	movl	4(%rax), %r12d
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, %r13d
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_devm_ioremap
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_SMI_EN@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rax
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_oct_mdio_writeq
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	16(%rcx), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rdx
	callq	_snprintf
	movq	8(%r14), %rax
	movq	%r15, 8(%rax)
	movq	_cavium_mdiobus_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_cavium_mdiobus_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	8(%r14), %rdi
	movl	(%r15), %esi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %r12d
	movq	8(%r14), %rdi
	callq	_mdiobus_free
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_oct_mdio_writeq
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found no memory resource\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"request_mem_region failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"dev_ioremap failed\n"

	.comm	_SMI_EN,8,3                     ## @SMI_EN
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%llx"

	.comm	_cavium_mdiobus_read,4,2        ## @cavium_mdiobus_read
	.comm	_cavium_mdiobus_write,4,2       ## @cavium_mdiobus_write
L_.str.4:                               ## @.str.4
	.asciz	"Probed\n"

	.no_dead_strip	_octeon_mdiobus_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mdiobus_probe
_octeon_mdiobus_probe:                  ; @octeon_mdiobus_probe
	.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	x19, x0
	mov	w1, #16
	bl	_devm_mdiobus_alloc_size
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	x20, [x21, #24]
	str	x21, [x20, #8]
	ldr	w21, [x0, #4]
	bl	_resource_size
	mov	x22, x0
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_devm_request_mem_region
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_devm_ioremap
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.4:
Lloh3:
	adrp	x22, _SMI_EN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SMI_EN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, x0
	mov	w0, #1
	bl	_oct_mdio_writeq
Lloh5:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	x3, x9, [x20]
	str	w8, [x9, #20]
	ldr	w0, [x9, #16]
Lloh8:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	ldr	x8, [x20, #8]
	str	x19, [x8, #8]
Lloh13:
	adrp	x9, _cavium_mdiobus_read@GOTPAGE
Lloh14:
	ldr	x9, [x9, _cavium_mdiobus_read@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _cavium_mdiobus_write@GOTPAGE
Lloh17:
	ldr	x10, [x10, _cavium_mdiobus_write@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x20, #8]
	ldr	w1, [x19]
	bl	_of_mdiobus_register
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.5:
	ldr	x0, [x20, #8]
	bl	_mdiobus_free
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, #0
	bl	_oct_mdio_writeq
	b	LBB0_12
LBB0_6:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	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_13:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found no memory resource\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"request_mem_region failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"dev_ioremap failed\n"

	.comm	_SMI_EN,8,3                     ; @SMI_EN
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%llx"

	.comm	_cavium_mdiobus_read,4,2        ; @cavium_mdiobus_read
	.comm	_cavium_mdiobus_write,4,2       ; @cavium_mdiobus_write
l_.str.4:                               ; @.str.4
	.asciz	"Probed\n"

	.no_dead_strip	_octeon_mdiobus_probe
.subsections_via_symbols
