	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_mdiobus_register_phy
_of_mdiobus_register_phy:               ## @of_mdiobus_register_phy
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_of_get_phy_id
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_get_phy_device
LBB0_4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_irq_get
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_phy_device_free
	jmp	LBB0_16
LBB0_8:
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.9:
	movl	%ebx, (%r13)
	movq	(%r15), %rax
	movl	%ebx, (%rax,%r14,4)
	jmp	LBB0_11
LBB0_2:
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_phy_device_create
	jmp	LBB0_4
LBB0_10:
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, (%r13)
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 8(%r15)
LBB0_13:
	leaq	28(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	leaq	24(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_u32
	movq	%r12, %rdi
	callq	_of_node_get
	movq	%r12, 16(%r13)
	movq	%r12, %rdi
	callq	_of_fwnode_handle
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_phy_device_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_phy_device_free
	movq	%r12, %rdi
	callq	_of_node_put
	jmp	LBB0_16
LBB0_15:
	addq	$12, %r15
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethernet-phy-ieee802.3-c45"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"broken-turn-around"

L_.str.2:                               ## @.str.2
	.asciz	"reset-assert-us"

L_.str.3:                               ## @.str.3
	.asciz	"reset-deassert-us"

L_.str.4:                               ## @.str.4
	.asciz	"registered phy %pOFn at address %i\n"

	.no_dead_strip	_of_mdiobus_register_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_mdiobus_register_phy
_of_mdiobus_register_phy:               ; @of_mdiobus_register_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_of_device_is_compatible
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_of_get_phy_id
	cbz	w0, LBB0_9
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_get_phy_device
LBB0_3:
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_of_irq_get
	mov	x23, x0
Lloh2:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_phy_device_free
	b	LBB0_16
LBB0_7:
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.8:
	str	w23, [x22]
	ldr	x8, [x21]
	str	w23, [x8, x20, lsl #2]
	b	LBB0_11
LBB0_9:
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	mov	x4, #0
	bl	_phy_device_create
	b	LBB0_3
LBB0_10:
	ldr	x8, [x21]
	ldr	w8, [x8, x20, lsl #2]
	str	w8, [x22]
LBB0_11:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_13:
	add	x2, x22, #28
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
	add	x2, x22, #24
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_u32
	mov	x0, x19
	bl	_of_node_get
	str	x19, [x22, #16]
	mov	x0, x19
	bl	_of_fwnode_handle
	str	w0, [x22, #8]
	mov	x0, x22
	bl	_phy_device_register
	mov	x23, x0
	cbz	w0, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_phy_device_free
	mov	x0, x19
	bl	_of_node_put
	b	LBB0_16
LBB0_15:
	add	x0, x21, #12
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dev_dbg
LBB0_16:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethernet-phy-ieee802.3-c45"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"broken-turn-around"

l_.str.2:                               ; @.str.2
	.asciz	"reset-assert-us"

l_.str.3:                               ; @.str.3
	.asciz	"reset-deassert-us"

l_.str.4:                               ; @.str.4
	.asciz	"registered phy %pOFn at address %i\n"

	.no_dead_strip	_of_mdiobus_register_phy
.subsections_via_symbols
