	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_petbi_start_neg_ex
_ql_petbi_start_neg_ex:                 ## @ql_petbi_start_neg_ex
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PETBI_TBI_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PHYAddr@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	-28(%rbp), %rdx
	callq	_ql_mii_read_reg_ex
	movq	_PETBI_TBI_AUTO_SENSE@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg_ex
	movq	_PETBI_NEG_ADVER@GOTPCREL(%rip), %rax
	movq	_PETBI_NEG_PAUSE@GOTPCREL(%rip), %rcx
	movq	_PETBI_NEG_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg_ex
	movq	_PETBI_CTRL_AUTO_NEG@GOTPCREL(%rip), %rax
	movq	_PETBI_CTRL_RESTART_NEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PETBI_CTRL_FULL_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PETBI_CONTROL_REG@GOTPCREL(%rip), %rax
	movq	_PETBI_CTRL_SPEED_1000@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	%rbx, %rdi
	callq	_ql_mii_write_reg_ex
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PETBI_TBI_CTRL,4,2             ## @PETBI_TBI_CTRL
	.comm	_PHYAddr,8,3                    ## @PHYAddr
	.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_ex
.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_ex
_ql_petbi_start_neg_ex:                 ; @ql_petbi_start_neg_ex
	.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
Lloh0:
	adrp	x20, _PETBI_TBI_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PETBI_TBI_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _PHYAddr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PHYAddr@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	w3, [x8, x9, lsl #2]
	add	x2, sp, #12
	bl	_ql_mii_read_reg_ex
Lloh4:
	adrp	x8, _PETBI_TBI_AUTO_SENSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PETBI_TBI_AUTO_SENSE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_ql_mii_write_reg_ex
Lloh7:
	adrp	x8, _PETBI_NEG_ADVER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PETBI_NEG_ADVER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _PETBI_NEG_PAUSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PETBI_NEG_PAUSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PETBI_NEG_DUPLEX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PETBI_NEG_DUPLEX@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_ql_mii_write_reg_ex
Lloh16:
	adrp	x8, _PETBI_CONTROL_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PETBI_CONTROL_REG@GOTPAGEOFF]
Lloh18:
	adrp	x9, _PETBI_CTRL_AUTO_NEG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PETBI_CTRL_AUTO_NEG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _PETBI_CTRL_RESTART_NEG@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PETBI_CTRL_RESTART_NEG@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _PETBI_CTRL_FULL_DUPLEX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PETBI_CTRL_FULL_DUPLEX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _PETBI_CTRL_SPEED_1000@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PETBI_CTRL_SPEED_1000@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w3, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_ql_mii_write_reg_ex
	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	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PETBI_TBI_CTRL,4,2             ; @PETBI_TBI_CTRL
	.comm	_PHYAddr,8,3                    ; @PHYAddr
	.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_ex
.subsections_via_symbols
