	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_phy_reg
_set_phy_reg:                           ## @set_phy_reg
	.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
	movl	%edx, %r12d
	movl	%esi, %edx
	movq	%rdi, %r14
	cmpl	$16, %esi
	jl	LBB0_3
## %bb.1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	cmpl	$256, %r12d                     ## imm = 0x100
	jl	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
LBB0_2:
	callq	_dev_err
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_LINK_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_LINK_PHY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%edx, %edi
	callq	_LINK_PHY_ADDR
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_LINK_PHY_WDATA
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_reg_write
	xorl	%eax, %eax
LBB0_6:
	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	"PHY register address %d out of range\n"

L_.str.1:                               ## @.str.1
	.asciz	"PHY register value %d out of range\n"

	.comm	_LINK_PHY,4,2                   ## @LINK_PHY
	.comm	_LINK_PHY_WRITE,4,2             ## @LINK_PHY_WRITE
	.no_dead_strip	_set_phy_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_phy_reg
_set_phy_reg:                           ; @set_phy_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x2, x1
	mov	x19, x0
	cmp	w1, #16
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	cmp	w20, #256
	b.lt	LBB0_5
; %bb.3:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
LBB0_4:
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _LINK_PHY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LINK_PHY@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _LINK_PHY_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LINK_PHY_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	mov	x0, x2
	bl	_LINK_PHY_ADDR
	orr	w22, w0, w22
	mov	x0, x20
	bl	_LINK_PHY_WDATA
	orr	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	bl	_reg_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY register address %d out of range\n"

l_.str.1:                               ; @.str.1
	.asciz	"PHY register value %d out of range\n"

	.comm	_LINK_PHY,4,2                   ; @LINK_PHY
	.comm	_LINK_PHY_WRITE,4,2             ; @LINK_PHY_WRITE
	.no_dead_strip	_set_phy_reg
.subsections_via_symbols
