	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_read_selftest
_ks_read_selftest:                      ## @ks_read_selftest
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MBIR_TXMBF@GOTPCREL(%rip), %rax
	movq	_MBIR_RXMBF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_KS_MBIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ks_rdreg16
	movl	%eax, %r12d
	notl	%eax
	testl	%eax, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_MBIR_TXMBFA@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_MBIR_RXMBFA@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
	orl	$2, %r14d
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_info
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBIR_TXMBF,4,2                 ## @MBIR_TXMBF
	.comm	_MBIR_RXMBF,4,2                 ## @MBIR_RXMBF
	.comm	_KS_MBIR,4,2                    ## @KS_MBIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory selftest not finished\n"

	.comm	_MBIR_TXMBFA,4,2                ## @MBIR_TXMBFA
L_.str.1:                               ## @.str.1
	.asciz	"TX memory selftest fails\n"

	.comm	_MBIR_RXMBFA,4,2                ## @MBIR_RXMBFA
L_.str.2:                               ## @.str.2
	.asciz	"RX memory selftest fails\n"

L_.str.3:                               ## @.str.3
	.asciz	"the selftest passes\n"

	.no_dead_strip	_ks_read_selftest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_read_selftest
_ks_read_selftest:                      ; @ks_read_selftest
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _MBIR_TXMBF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBIR_TXMBF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MBIR_RXMBF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MBIR_RXMBF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh6:
	adrp	x8, _KS_MBIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KS_MBIR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ks_rdreg16
	bics	wzr, w20, w0
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x8, _MBIR_TXMBFA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBIR_TXMBFA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	mov	w20, #1
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh16:
	adrp	x8, _MBIR_RXMBFA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBIR_RXMBFA@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
	orr	w20, w20, #0x2
LBB0_7:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_info
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MBIR_TXMBF,4,2                 ; @MBIR_TXMBF
	.comm	_MBIR_RXMBF,4,2                 ; @MBIR_RXMBF
	.comm	_KS_MBIR,4,2                    ; @KS_MBIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory selftest not finished\n"

	.comm	_MBIR_TXMBFA,4,2                ; @MBIR_TXMBFA
l_.str.1:                               ; @.str.1
	.asciz	"TX memory selftest fails\n"

	.comm	_MBIR_RXMBFA,4,2                ; @MBIR_RXMBFA
l_.str.2:                               ; @.str.2
	.asciz	"RX memory selftest fails\n"

l_.str.3:                               ; @.str.3
	.asciz	"the selftest passes\n"

	.no_dead_strip	_ks_read_selftest
.subsections_via_symbols
