	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_mac_register_phy
_hns_mac_register_phy:                  ## @hns_mac_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_acpi_device_node
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_node_get_property_reference
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movl	-24(%rbp), %edi
	callq	_is_acpi_device_node
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_hns_mac_phy_parse_addr
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	-24(%rbp), %edi
	callq	_hns_dsaf_find_platform_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_hns_mac_register_phydev
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movl	%r14d, %eax
	jmp	LBB0_14
LBB0_9:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio-node"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"mac%d mdio pdev is NULL\n"

L_.str.2:                               ## @.str.2
	.asciz	"mac%d mdio is NULL, dsaf will probe again later\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"mac%d register phy addr:%d\n"

	.no_dead_strip	_hns_mac_register_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_mac_register_phy
_hns_mac_register_phy:                  ; @hns_mac_register_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_acpi_device_node
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #0
	bl	_acpi_node_get_property_reference
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_is_acpi_device_node
	cbz	w0, LBB0_11
; %bb.3:
	ldp	w0, w1, [x19, #4]
	bl	_hns_mac_phy_parse_addr
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_hns_dsaf_find_platform_device
	cbz	x0, LBB0_10
; %bb.5:
	bl	_platform_get_drvdata
	cbz	x0, LBB0_14
; %bb.6:
	mov	x1, x19
	mov	x2, x20
	bl	_hns_mac_register_phydev
	cbnz	w0, LBB0_13
; %bb.7:
	ldp	w2, w0, [x19]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_13
LBB0_8:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	b	LBB0_13
LBB0_10:
	ldp	w2, w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	ldp	w2, w0, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio-node"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"mac%d mdio pdev is NULL\n"

l_.str.2:                               ; @.str.2
	.asciz	"mac%d mdio is NULL, dsaf will probe again later\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"mac%d register phy addr:%d\n"

	.no_dead_strip	_hns_mac_register_phy
.subsections_via_symbols
