	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unimac_mdio_probe
_unimac_mdio_probe:                     ## @unimac_mdio_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	movq	16(%rbx), %r14
	movq	24(%rbx), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %r15
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %r13
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r15, %r14
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movl	%eax, 40(%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_10
## %bb.4:
	movq	(%rbx), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_8:
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %r15
	movq	$0, (%rbx)
	xorl	%edi, %edi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movq	%rbx, %r13
	addq	$32, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	$0, (%r13)
LBB0_13:
	movq	%rbx, %rdi
	callq	_unimac_mdio_clk_set
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_mdiobus_alloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rbx, 40(%rax)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:
	movq	(%rsi), %rcx
	movl	24(%rsi), %edi
	movq	16(%rsi), %rdx
	movl	8(%rsi), %esi
	notl	%esi
	movl	%esi, 32(%rax)
	jmp	LBB0_18
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_17:
	movq	_unimac_mdio_poll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdx
LBB0_18:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%rdx, 16(%rbx)
	movl	%edi, 8(%rbx)
	movq	%r14, 24(%rax)
	movq	_unimac_mdio_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_unimac_mdio_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_unimac_mdio_reset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	%rax, %r13
	movl	8(%rax), %edi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rcx
	movl	8(%r12), %r8d
	leaq	L_.str.3(%rip), %rdx
	callq	_snprintf
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdiobus_free
LBB0_20:
	movq	(%rbx), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_9
LBB0_21:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to remap register\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

L_.str.2:                               ## @.str.2
	.asciz	"unimac MII bus"

	.comm	_unimac_mdio_poll,4,2           ## @unimac_mdio_poll
	.comm	_unimac_mdio_read,4,2           ## @unimac_mdio_read
	.comm	_unimac_mdio_write,4,2          ## @unimac_mdio_write
	.comm	_unimac_mdio_reset,4,2          ## @unimac_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s-%d"

L_.str.4:                               ## @.str.4
	.asciz	"MDIO bus registration failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Broadcom UniMAC MDIO bus\n"

	.no_dead_strip	_unimac_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unimac_mdio_probe
_unimac_mdio_probe:                     ; @unimac_mdio_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	mov	x20, x0
	ldp	x22, x25, [x20, #16]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w23, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_devm_ioremap
	str	w0, [x19, #40]
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_PTR_ERR
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.4:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	str	xzr, [x19]
	mov	x0, #0
	bl	_clk_prepare_enable
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.11:
	add	x23, x19, #32
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_of_property_read_u32
	cbz	x0, LBB0_13
; %bb.12:
	str	xzr, [x23]
LBB0_13:
	mov	x0, x19
	bl	_unimac_mdio_clk_set
	bl	_mdiobus_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_16
; %bb.14:
	mov	x23, x0
	str	x19, [x0, #40]
	cbz	x25, LBB0_17
; %bb.15:
	ldr	x9, [x25]
	ldr	w8, [x25, #24]
	ldr	x10, [x25, #16]
	ldr	w11, [x25, #8]
	mvn	w11, w11
	str	w11, [x23, #32]
	b	LBB0_18
LBB0_16:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_20
LBB0_17:
Lloh20:
	adrp	x8, _unimac_mdio_poll@GOTPAGE
Lloh21:
	ldr	x8, [x8, _unimac_mdio_poll@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, l_.str.2@PAGE
Lloh24:
	add	x9, x9, l_.str.2@PAGEOFF
	mov	x10, x19
LBB0_18:
	str	x9, [x23]
	str	x10, [x19, #16]
	str	w8, [x19, #8]
	str	x20, [x23, #24]
Lloh25:
	adrp	x8, _unimac_mdio_read@GOTPAGE
Lloh26:
	ldr	x8, [x8, _unimac_mdio_read@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x23, #20]
Lloh28:
	adrp	x8, _unimac_mdio_write@GOTPAGE
Lloh29:
	ldr	x8, [x8, _unimac_mdio_write@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _unimac_mdio_reset@GOTPAGE
Lloh32:
	ldr	x9, [x9, _unimac_mdio_reset@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #12]
	ldr	w0, [x23, #8]
Lloh34:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x3, [x21]
	ldr	w4, [x21, #8]
Lloh37:
	adrp	x2, l_.str.3@PAGE
Lloh38:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	mov	x0, x23
	mov	x1, x22
	bl	_of_mdiobus_register
	mov	x24, x0
	cbz	w0, LBB0_21
; %bb.19:
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x23
	bl	_mdiobus_free
LBB0_20:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_9
LBB0_21:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to remap register\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

l_.str.2:                               ; @.str.2
	.asciz	"unimac MII bus"

	.comm	_unimac_mdio_poll,4,2           ; @unimac_mdio_poll
	.comm	_unimac_mdio_read,4,2           ; @unimac_mdio_read
	.comm	_unimac_mdio_write,4,2          ; @unimac_mdio_write
	.comm	_unimac_mdio_reset,4,2          ; @unimac_mdio_reset
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s-%d"

l_.str.4:                               ; @.str.4
	.asciz	"MDIO bus registration failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Broadcom UniMAC MDIO bus\n"

	.no_dead_strip	_unimac_mdio_probe
.subsections_via_symbols
