	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_pegasus_II
_setup_pegasus_II:                      ## @setup_pegasus_II
	.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	%rdi, %rbx
	movl	$165, -44(%rbp)
	movq	_Reg1d@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_set_register
	movq	_Reg7b@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_set_register
	movl	$100, %edi
	callq	_msleep
	movq	_HAS_HOME_PNA@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	andl	(%rbx), %eax
	sete	%al
	movq	_mii_mode@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	sete	%cl
	movl	(%r13), %esi
	orb	%al, %cl
	movzbl	%cl, %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_set_register
	movq	%rbx, %rdi
	movl	$131, %esi
	movl	$165, %edx
	callq	_set_register
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$131, %esi
	movl	$1, %edx
	callq	_get_registers
	cmpl	$165, -44(%rbp)
	movl	$34067, %eax                    ## imm = 0x8513
	cmovnel	%r12d, %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$192, %edx
	callq	_set_register
	movq	%rbx, %rdi
	movl	$131, %esi
	movl	$255, %edx
	callq	_set_register
	movq	%rbx, %rdi
	movl	$132, %esi
	movl	$1, %edx
	callq	_set_register
	movl	(%r14), %eax
	andl	(%rbx), %eax
	setne	%al
	cmpq	$0, (%r15)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	leal	2(,%rax,4), %edx
	movq	_Reg81@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_register
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Reg1d,4,2                      ## @Reg1d
	.comm	_Reg7b,4,2                      ## @Reg7b
	.comm	_HAS_HOME_PNA,4,2               ## @HAS_HOME_PNA
	.comm	_mii_mode,8,3                   ## @mii_mode
	.comm	_Reg81,4,2                      ## @Reg81
	.no_dead_strip	_setup_pegasus_II
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_pegasus_II
_setup_pegasus_II:                      ; @setup_pegasus_II
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w8, #165
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _Reg1d@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Reg1d@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_set_register
Lloh3:
	adrp	x21, _Reg7b@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Reg7b@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_set_register
	mov	w0, #100
	bl	_msleep
	ldr	w8, [x19]
Lloh5:
	adrp	x20, _HAS_HOME_PNA@GOTPAGE
Lloh6:
	ldr	x20, [x20, _HAS_HOME_PNA@GOTPAGEOFF]
	ldr	w9, [x20]
	and	w8, w9, w8
Lloh7:
	adrp	x22, _mii_mode@GOTPAGE
Lloh8:
	ldr	x22, [x22, _mii_mode@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	ldr	w1, [x21]
	mov	w21, #2
	csel	w2, wzr, w21, ne
	mov	x0, x19
	bl	_set_register
	mov	x0, x19
	mov	w1, #131
	mov	w2, #165
	bl	_set_register
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #131
	mov	w2, #1
	bl	_get_registers
	ldr	w8, [sp, #12]
	mov	w9, #34067
	cmp	w8, #165
	csel	w8, w9, wzr, eq
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #128
	mov	w2, #192
	bl	_set_register
	mov	x0, x19
	mov	w1, #131
	mov	w2, #255
	bl	_set_register
	mov	x0, x19
	mov	w1, #132
	mov	w2, #1
	bl	_set_register
	ldr	w8, [x19]
	ldr	w9, [x20]
	and	w8, w9, w8
	ldr	x9, [x22]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	mov	w8, #6
	csel	w2, w8, w21, ne
Lloh9:
	adrp	x8, _Reg81@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Reg81@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_register
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Reg1d,4,2                      ; @Reg1d
	.comm	_Reg7b,4,2                      ; @Reg7b
	.comm	_HAS_HOME_PNA,4,2               ; @HAS_HOME_PNA
	.comm	_mii_mode,8,3                   ; @mii_mode
	.comm	_Reg81,4,2                      ; @Reg81
	.no_dead_strip	_setup_pegasus_II
.subsections_via_symbols
