	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fixed_phy_register
___fixed_phy_register:                  ## @__fixed_phy_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	%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	_platform_fmb@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rcx, %rbx
	movq	(%rax), %rax
	movq	_MDIOBUS_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %r12d
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_5:
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_phy_fixed_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	%r12d, %edi
	movl	%eax, %r12d
	movl	%eax, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_fixed_phy_add_gpiod
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_get_phy_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r12d, %edi
	callq	_fixed_phy_del
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_7
LBB0_2:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	_fixed_phy_get_gpiod
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.22:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_6:
	movl	%eax, %edi
	jmp	LBB0_7
LBB0_9:
	movl	%eax, %ebx
	movq	_phy_fixed_ida@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_ida_simple_remove
	movl	%ebx, %edi
	jmp	LBB0_7
LBB0_13:
	movq	16(%r13), %rax
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	movl	12(%r13), %eax
	movl	%eax, 32(%r14)
	movl	8(%r13), %eax
	movl	%eax, 28(%r14)
	movl	4(%r13), %eax
	movl	%eax, 24(%r14)
LBB0_15:
	movq	%r15, %rdi
	callq	_of_node_get
	movq	%r15, 16(%r14)
	movl	$1, 4(%r14)
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.17:
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
	movq	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
LBB0_18:
	movq	_ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
	movq	_ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
LBB0_19:
	movq	_ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
	movq	_ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_linkmode_set_bit
	movq	%r14, %rdi
	callq	_phy_advertise_supported
	movq	%r14, %rdi
	callq	_phy_device_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_phy_device_free
	movq	%r15, %rdi
	callq	_of_node_put
	movl	%r12d, %edi
	callq	_fixed_phy_del
	movl	%ebx, %edi
	jmp	LBB0_7
LBB0_21:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_platform_fmb,8,3               ## @platform_fmb
	.comm	_MDIOBUS_REGISTERED,8,3         ## @MDIOBUS_REGISTERED
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_phy_fixed_ida,4,2              ## @phy_fixed_ida
	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.no_dead_strip	___fixed_phy_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fixed_phy_register
___fixed_phy_register:                  ; @__fixed_phy_register
	.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
Lloh0:
	adrp	x24, _platform_fmb@GOTPAGE
Lloh1:
	ldr	x24, [x24, _platform_fmb@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _MDIOBUS_REGISTERED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MDIOBUS_REGISTERED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	cbz	x3, LBB0_10
LBB0_3:
Lloh5:
	adrp	x8, _PHY_MAX_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_MAX_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x0, _phy_fixed_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _phy_fixed_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_fixed_phy_add_gpiod
	tbnz	w0, #31, LBB0_13
; %bb.5:
	ldr	x0, [x24]
	mov	x1, x20
	mov	w2, #0
	bl	_get_phy_device
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_fixed_phy_del
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	b	_ERR_PTR
LBB0_10:
	mov	x0, x19
	bl	_fixed_phy_get_gpiod
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.11:
	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
	b	_ERR_CAST
LBB0_12:
	mov	x0, x20
	b	LBB0_9
LBB0_13:
	mov	x21, x0
Lloh17:
	adrp	x0, _phy_fixed_ida@GOTPAGE
Lloh18:
	ldr	x0, [x0, _phy_fixed_ida@GOTPAGEOFF]
	mov	x1, x20
	bl	_ida_simple_remove
	mov	x0, x21
	b	LBB0_9
LBB0_14:
	ldr	x8, [x22, #16]
	str	x8, [x21, #40]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w8, [x22]
	str	w8, [x21]
	ldr	w8, [x22, #12]
	str	w8, [x21, #32]
	ldur	d0, [x22, #4]
	str	d0, [x21, #24]
LBB0_16:
	mov	x0, x19
	bl	_of_node_get
	str	x19, [x21, #16]
	mov	w8, #1
	str	w8, [x21, #4]
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.17:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.18:
Lloh19:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
Lloh22:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
LBB0_19:
Lloh25:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
Lloh28:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Full_BIT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
LBB0_20:
Lloh31:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
Lloh34:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_linkmode_set_bit
	mov	x0, x21
	bl	_phy_advertise_supported
	mov	x0, x21
	bl	_phy_device_register
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
	mov	x0, x21
	bl	_phy_device_free
	mov	x0, x19
	bl	_of_node_put
	mov	x0, x20
	bl	_fixed_phy_del
	mov	x0, x22
	b	LBB0_9
LBB0_22:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_platform_fmb,8,3               ; @platform_fmb
	.comm	_MDIOBUS_REGISTERED,8,3         ; @MDIOBUS_REGISTERED
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_phy_fixed_ida,4,2              ; @phy_fixed_ida
	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.no_dead_strip	___fixed_phy_register
.subsections_via_symbols
