	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_petbi_start_neg
_ql_petbi_start_neg:                    ## @ql_petbi_start_neg
	.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
	movq	_PETBI_TBI_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_ql_mii_read_reg
	movq	_PETBI_TBI_AUTO_SENSE@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg
	movq	_PETBI_NEG_ADVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PETBI_NEG_PAUSE@GOTPCREL(%rip), %rax
	movq	_PETBI_NEG_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg
	movq	_PETBI_CTRL_AUTO_NEG@GOTPCREL(%rip), %rax
	movq	_PETBI_CTRL_RESTART_NEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PETBI_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	_PETBI_CTRL_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PETBI_CTRL_SPEED_1000@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PETBI_TBI_CTRL,4,2             ## @PETBI_TBI_CTRL
	.comm	_PETBI_TBI_AUTO_SENSE,4,2       ## @PETBI_TBI_AUTO_SENSE
	.comm	_PETBI_NEG_ADVER,4,2            ## @PETBI_NEG_ADVER
	.comm	_PETBI_NEG_PAUSE,4,2            ## @PETBI_NEG_PAUSE
	.comm	_PETBI_NEG_DUPLEX,4,2           ## @PETBI_NEG_DUPLEX
	.comm	_PETBI_CONTROL_REG,4,2          ## @PETBI_CONTROL_REG
	.comm	_PETBI_CTRL_AUTO_NEG,4,2        ## @PETBI_CTRL_AUTO_NEG
	.comm	_PETBI_CTRL_RESTART_NEG,4,2     ## @PETBI_CTRL_RESTART_NEG
	.comm	_PETBI_CTRL_FULL_DUPLEX,4,2     ## @PETBI_CTRL_FULL_DUPLEX
	.comm	_PETBI_CTRL_SPEED_1000,4,2      ## @PETBI_CTRL_SPEED_1000
	.no_dead_strip	_ql_petbi_start_neg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_petbi_start_neg
_ql_petbi_start_neg:                    ; @ql_petbi_start_neg
	.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
Lloh0:
	adrp	x20, _PETBI_TBI_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PETBI_TBI_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_ql_mii_read_reg
Lloh2:
	adrp	x8, _PETBI_TBI_AUTO_SENSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PETBI_TBI_AUTO_SENSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ql_mii_write_reg
Lloh5:
	adrp	x8, _PETBI_NEG_ADVER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PETBI_NEG_ADVER@GOTPAGEOFF]
Lloh7:
	adrp	x9, _PETBI_NEG_PAUSE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PETBI_NEG_PAUSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _PETBI_NEG_DUPLEX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PETBI_NEG_DUPLEX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ql_mii_write_reg
Lloh14:
	adrp	x8, _PETBI_CONTROL_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PETBI_CONTROL_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _PETBI_CTRL_AUTO_NEG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PETBI_CTRL_AUTO_NEG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _PETBI_CTRL_RESTART_NEG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PETBI_CTRL_RESTART_NEG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _PETBI_CTRL_FULL_DUPLEX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PETBI_CTRL_FULL_DUPLEX@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _PETBI_CTRL_SPEED_1000@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PETBI_CTRL_SPEED_1000@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_ql_mii_write_reg
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PETBI_TBI_CTRL,4,2             ; @PETBI_TBI_CTRL
	.comm	_PETBI_TBI_AUTO_SENSE,4,2       ; @PETBI_TBI_AUTO_SENSE
	.comm	_PETBI_NEG_ADVER,4,2            ; @PETBI_NEG_ADVER
	.comm	_PETBI_NEG_PAUSE,4,2            ; @PETBI_NEG_PAUSE
	.comm	_PETBI_NEG_DUPLEX,4,2           ; @PETBI_NEG_DUPLEX
	.comm	_PETBI_CONTROL_REG,4,2          ; @PETBI_CONTROL_REG
	.comm	_PETBI_CTRL_AUTO_NEG,4,2        ; @PETBI_CTRL_AUTO_NEG
	.comm	_PETBI_CTRL_RESTART_NEG,4,2     ; @PETBI_CTRL_RESTART_NEG
	.comm	_PETBI_CTRL_FULL_DUPLEX,4,2     ; @PETBI_CTRL_FULL_DUPLEX
	.comm	_PETBI_CTRL_SPEED_1000,4,2      ; @PETBI_CTRL_SPEED_1000
	.no_dead_strip	_ql_petbi_start_neg
.subsections_via_symbols
