	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_mac_setup_csrings
_pasemi_mac_setup_csrings:              ## @pasemi_mac_setup_csrings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_pasemi_mac_setup_csring
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	_MAC_TYPE_XAUI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_pasemi_mac_setup_csring
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_MAX_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.4:
	movq	16(%rbx), %rcx
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%edx, %edx
LBB0_12:
	testb	$1, %al
	je	LBB0_15
## %bb.13:
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_15
## %bb.14:
	incl	8(%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	8(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 8(%rcx,%rdx,8)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	8(%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_TYPE_XAUI,8,3              ## @MAC_TYPE_XAUI
	.comm	_MAX_CS,4,2                     ## @MAX_CS
	.no_dead_strip	_pasemi_mac_setup_csrings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_mac_setup_csrings
_pasemi_mac_setup_csrings:              ; @pasemi_mac_setup_csrings
	.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
	bl	_pasemi_mac_setup_csring
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MAC_TYPE_XAUI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC_TYPE_XAUI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pasemi_mac_setup_csring
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
Lloh3:
	adrp	x8, _MAX_CS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x9, [x19, #16]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x19, #8]
	add	w10, w10, #1
	str	w10, [x19, #8]
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_TYPE_XAUI,8,3              ; @MAC_TYPE_XAUI
	.comm	_MAX_CS,4,2                     ; @MAX_CS
	.no_dead_strip	_pasemi_mac_setup_csrings
.subsections_via_symbols
