	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_setup
_ks_setup:                              ## @ks_setup
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_KS_TXFDPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXFDPR_TXFPAI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ks_wrreg16
	movq	_KS_RXFDPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RXFDPR_RXFPAI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	movq	_KS_RXFCTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RXFCTR_RXFCT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	movq	_RXQCR_CMD_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movq	_KS_RXQCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	movq	_KS_P1MBCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ks_rdreg16
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	movq	_TXCR_TXFCE@GOTPCREL(%rip), %rax
	movq	_TXCR_TXPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_TXCR_TXCRC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_TXCR_TCGIP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_KS_TXCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ks_wrreg16
	movq	_RXCR1_RXFCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_RXCR1_RXBE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RXCR1_RXUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_RXCR1_RXME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RXCR1_RXIPFCC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_RXCR1_RXAE@GOTPCREL(%rip), %r9
	movq	_RXCR1_RXINVF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r9), %eax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_RXCR1_RXAE@GOTPCREL(%rip), %r9
	movq	_RXCR1_RXMAFMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r9), %eax
	movq	_RXCR1_RXPAFMA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_RXCR1_RXPAFMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%r8d, %edx
	orl	%r10d, %edx
	orl	%esi, %edx
	orl	%edi, %edx
	orl	%eax, %edx
	movq	_KS_RXCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ks_wrreg16                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_TXFDPR,4,2                  ## @KS_TXFDPR
	.comm	_TXFDPR_TXFPAI,4,2              ## @TXFDPR_TXFPAI
	.comm	_KS_RXFDPR,4,2                  ## @KS_RXFDPR
	.comm	_RXFDPR_RXFPAI,4,2              ## @RXFDPR_RXFPAI
	.comm	_KS_RXFCTR,4,2                  ## @KS_RXFCTR
	.comm	_RXFCTR_RXFCT_MASK,4,2          ## @RXFCTR_RXFCT_MASK
	.comm	_RXQCR_CMD_CNTL,4,2             ## @RXQCR_CMD_CNTL
	.comm	_KS_RXQCR,4,2                   ## @KS_RXQCR
	.comm	_KS_P1MBCR,4,2                  ## @KS_P1MBCR
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_TXCR_TXFCE,4,2                 ## @TXCR_TXFCE
	.comm	_TXCR_TXPE,4,2                  ## @TXCR_TXPE
	.comm	_TXCR_TXCRC,4,2                 ## @TXCR_TXCRC
	.comm	_TXCR_TCGIP,4,2                 ## @TXCR_TCGIP
	.comm	_KS_TXCR,4,2                    ## @KS_TXCR
	.comm	_RXCR1_RXFCE,4,2                ## @RXCR1_RXFCE
	.comm	_RXCR1_RXBE,4,2                 ## @RXCR1_RXBE
	.comm	_RXCR1_RXUE,4,2                 ## @RXCR1_RXUE
	.comm	_RXCR1_RXME,4,2                 ## @RXCR1_RXME
	.comm	_RXCR1_RXIPFCC,4,2              ## @RXCR1_RXIPFCC
	.comm	_RXCR1_RXAE,4,2                 ## @RXCR1_RXAE
	.comm	_RXCR1_RXINVF,4,2               ## @RXCR1_RXINVF
	.comm	_RXCR1_RXMAFMA,4,2              ## @RXCR1_RXMAFMA
	.comm	_RXCR1_RXPAFMA,4,2              ## @RXCR1_RXPAFMA
	.comm	_KS_RXCR1,4,2                   ## @KS_RXCR1
	.no_dead_strip	_ks_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_setup
_ks_setup:                              ; @ks_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x8, _KS_TXFDPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_TXFDPR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TXFDPR_TXFPAI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXFDPR_TXFPAI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_ks_wrreg16
Lloh6:
	adrp	x8, _KS_RXFDPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KS_RXFDPR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RXFDPR_RXFPAI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXFDPR_RXFPAI@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ks_wrreg16
Lloh12:
	adrp	x8, _KS_RXFCTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KS_RXFCTR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _RXFCTR_RXFCT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RXFCTR_RXFCT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_ks_wrreg16
Lloh18:
	adrp	x8, _RXQCR_CMD_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RXQCR_CMD_CNTL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	str	w2, [x19]
Lloh21:
	adrp	x8, _KS_RXQCR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KS_RXQCR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ks_wrreg16
Lloh24:
	adrp	x20, _KS_P1MBCR@GOTPAGE
Lloh25:
	ldr	x20, [x20, _KS_P1MBCR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ks_rdreg16
Lloh26:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ks_wrreg16
Lloh29:
	adrp	x8, _TXCR_TXFCE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TXCR_TXFCE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _TXCR_TXPE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TXCR_TXPE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _TXCR_TXCRC@GOTPAGE
Lloh36:
	ldr	x9, [x9, _TXCR_TXCRC@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _TXCR_TCGIP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _TXCR_TCGIP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh40:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh41:
	adrp	x8, _KS_TXCR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _KS_TXCR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ks_wrreg16
Lloh44:
	adrp	x8, _RXCR1_RXFCE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RXCR1_RXFCE@GOTPAGEOFF]
Lloh46:
	adrp	x9, _RXCR1_RXBE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RXCR1_RXBE@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	ldr	w9, [x9]
Lloh50:
	adrp	x10, _RXCR1_RXUE@GOTPAGE
Lloh51:
	ldr	x10, [x10, _RXCR1_RXUE@GOTPAGEOFF]
Lloh52:
	adrp	x12, _RXCR1_RXME@GOTPAGE
Lloh53:
	ldr	x12, [x12, _RXCR1_RXME@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x10]
Lloh55:
	ldr	w10, [x12]
Lloh56:
	adrp	x12, _RXCR1_RXIPFCC@GOTPAGE
Lloh57:
	ldr	x12, [x12, _RXCR1_RXIPFCC@GOTPAGEOFF]
Lloh58:
	ldr	w12, [x12]
	ldr	x13, [x19, #16]
	cbz	x13, LBB0_2
; %bb.1:
Lloh59:
	adrp	x13, _RXCR1_RXAE@GOTPAGE
Lloh60:
	ldr	x13, [x13, _RXCR1_RXAE@GOTPAGEOFF]
Lloh61:
	ldr	w13, [x13]
Lloh62:
	adrp	x14, _RXCR1_RXINVF@GOTPAGE
Lloh63:
	ldr	x14, [x14, _RXCR1_RXINVF@GOTPAGEOFF]
Lloh64:
	ldr	w14, [x14]
	orr	w13, w14, w13
	b	LBB0_5
LBB0_2:
	ldr	x13, [x19, #8]
	cbz	x13, LBB0_4
; %bb.3:
Lloh65:
	adrp	x13, _RXCR1_RXAE@GOTPAGE
Lloh66:
	ldr	x13, [x13, _RXCR1_RXAE@GOTPAGEOFF]
Lloh67:
	ldr	w13, [x13]
Lloh68:
	adrp	x14, _RXCR1_RXMAFMA@GOTPAGE
Lloh69:
	ldr	x14, [x14, _RXCR1_RXMAFMA@GOTPAGEOFF]
Lloh70:
	ldr	w14, [x14]
	orr	w13, w14, w13
Lloh71:
	adrp	x14, _RXCR1_RXPAFMA@GOTPAGE
Lloh72:
	ldr	x14, [x14, _RXCR1_RXPAFMA@GOTPAGEOFF]
Lloh73:
	ldr	w14, [x14]
	orr	w13, w13, w14
	b	LBB0_5
LBB0_4:
Lloh74:
	adrp	x13, _RXCR1_RXPAFMA@GOTPAGE
Lloh75:
	ldr	x13, [x13, _RXCR1_RXPAFMA@GOTPAGEOFF]
Lloh76:
	ldr	w13, [x13]
LBB0_5:
	orr	w8, w9, w8
	orr	w8, w8, w11
	orr	w8, w8, w10
	orr	w8, w8, w12
	orr	w2, w8, w13
Lloh77:
	adrp	x8, _KS_RXCR1@GOTPAGE
Lloh78:
	ldr	x8, [x8, _KS_RXCR1@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ks_wrreg16
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh54
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_TXFDPR,4,2                  ; @KS_TXFDPR
	.comm	_TXFDPR_TXFPAI,4,2              ; @TXFDPR_TXFPAI
	.comm	_KS_RXFDPR,4,2                  ; @KS_RXFDPR
	.comm	_RXFDPR_RXFPAI,4,2              ; @RXFDPR_RXFPAI
	.comm	_KS_RXFCTR,4,2                  ; @KS_RXFCTR
	.comm	_RXFCTR_RXFCT_MASK,4,2          ; @RXFCTR_RXFCT_MASK
	.comm	_RXQCR_CMD_CNTL,4,2             ; @RXQCR_CMD_CNTL
	.comm	_KS_RXQCR,4,2                   ; @KS_RXQCR
	.comm	_KS_P1MBCR,4,2                  ; @KS_P1MBCR
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_TXCR_TXFCE,4,2                 ; @TXCR_TXFCE
	.comm	_TXCR_TXPE,4,2                  ; @TXCR_TXPE
	.comm	_TXCR_TXCRC,4,2                 ; @TXCR_TXCRC
	.comm	_TXCR_TCGIP,4,2                 ; @TXCR_TCGIP
	.comm	_KS_TXCR,4,2                    ; @KS_TXCR
	.comm	_RXCR1_RXFCE,4,2                ; @RXCR1_RXFCE
	.comm	_RXCR1_RXBE,4,2                 ; @RXCR1_RXBE
	.comm	_RXCR1_RXUE,4,2                 ; @RXCR1_RXUE
	.comm	_RXCR1_RXME,4,2                 ; @RXCR1_RXME
	.comm	_RXCR1_RXIPFCC,4,2              ; @RXCR1_RXIPFCC
	.comm	_RXCR1_RXAE,4,2                 ; @RXCR1_RXAE
	.comm	_RXCR1_RXINVF,4,2               ; @RXCR1_RXINVF
	.comm	_RXCR1_RXMAFMA,4,2              ; @RXCR1_RXMAFMA
	.comm	_RXCR1_RXPAFMA,4,2              ; @RXCR1_RXPAFMA
	.comm	_KS_RXCR1,4,2                   ; @KS_RXCR1
	.no_dead_strip	_ks_setup
.subsections_via_symbols
