	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_driver_register            ## -- Begin function phy_driver_register
	.p2align	4, 0x90
_phy_driver_register:                   ## @phy_driver_register
	.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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_MDIO_DEVICE_IS_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rbx)
	leaq	8(%rbx), %rdi
	movl	(%rbx), %eax
	movl	%eax, 32(%rbx)
	movq	_mdio_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_phy_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_phy_remove@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, 8(%rbx)
	callq	_driver_register
	movl	(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: features and get_features must not both be set\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MDIO_DEVICE_IS_PHY,4,2         ## @MDIO_DEVICE_IS_PHY
	.comm	_mdio_bus_type,4,2              ## @mdio_bus_type
	.comm	_phy_probe,4,2                  ## @phy_probe
	.comm	_phy_remove,4,2                 ## @phy_remove
L_.str.1:                               ## @.str.1
	.asciz	"%s: Error %d in registering driver\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Registered new driver\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_driver_register            ; -- Begin function phy_driver_register
	.p2align	2
_phy_driver_register:                   ; @phy_driver_register
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _MDIO_DEVICE_IS_PHY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_DEVICE_IS_PHY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
	ldr	w8, [x19]
	str	w8, [x19, #32]
Lloh8:
	adrp	x8, _mdio_bus_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mdio_bus_type@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh10:
	adrp	x8, _phy_probe@GOTPAGE
Lloh11:
	ldr	x8, [x8, _phy_probe@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _phy_remove@GOTPAGE
Lloh14:
	ldr	x9, [x9, _phy_remove@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	str	x20, [x0, #8]!
	bl	_driver_register
	mov	x20, x0
	ldr	w1, [x19]
	cbz	w0, LBB0_6
; %bb.5:
	str	x20, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: features and get_features must not both be set\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MDIO_DEVICE_IS_PHY,4,2         ; @MDIO_DEVICE_IS_PHY
	.comm	_mdio_bus_type,4,2              ; @mdio_bus_type
	.comm	_phy_probe,4,2                  ; @phy_probe
	.comm	_phy_remove,4,2                 ; @phy_remove
l_.str.1:                               ; @.str.1
	.asciz	"%s: Error %d in registering driver\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Registered new driver\n"

.subsections_via_symbols
