	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_get_mac                 ## -- Begin function mantis_get_mac
	.p2align	4, 0x90
_mantis_get_mac:                        ## @mantis_get_mac
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	leaq	-48(%rbp), %rdx
	movl	$8, %esi
	movl	$6, %ecx
	callq	_read_eeprom_bytes
	movl	%eax, %ebx
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rcx
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	movl	%ebx, %ecx
LBB0_3:
	callq	_dprintk
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Mantis EEPROM read error <%d>"

L_.str.1:                               ## @.str.1
	.asciz	"    MAC Address=[%pM]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_get_mac                 ; -- Begin function mantis_get_mac
	.p2align	2
_mantis_get_mac:                        ; @mantis_get_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x2, sp
	mov	w1, #8
	mov	w3, #6
	bl	_read_eeprom_bytes
	mov	x19, x0
Lloh3:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	tbnz	w19, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, sp
	mov	w1, #0
	bl	_dprintk
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	mov	x3, x19
	bl	_dprintk
LBB0_3:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Mantis EEPROM read error <%d>"

l_.str.1:                               ; @.str.1
	.asciz	"    MAC Address=[%pM]\n"

.subsections_via_symbols
