	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smbios_detect                  ## -- Begin function smbios_detect
	.p2align	4, 0x90
_smbios_detect:                         ## @smbios_detect
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_smbios_probe
	movq	_smbios@GOTPCREL(%rip), %r15
	movq	56(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_smbios_parse_table
	movslq	(%r15), %rcx
	shlq	$2, %rcx
	addq	56(%r15), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rcx
	cmpq	8(%r15), %rbx
	movq	%rcx, %rbx
	jb	LBB0_4
LBB0_6:
	movslq	16(%r15), %rdx
	movl	20(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_setenv
	movq	24(%r15), %rax
	movq	32(%r15), %rdx
	testq	%rax, %rax
	jg	LBB0_8
## %bb.7:
	testq	%rdx, %rdx
	jle	LBB0_9
LBB0_8:
	testq	%rax, %rax
	cmovgq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_9:
	movq	40(%r15), %rdx
	testq	%rdx, %rdx
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_11:
	movq	48(%r15), %rdx
	testq	%rdx, %rdx
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_smbios,64,3                    ## @smbios
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d"

L_.str.1:                               ## @.str.1
	.asciz	"smbios.version"

L_.str.2:                               ## @.str.2
	.asciz	"%u"

L_.str.3:                               ## @.str.3
	.asciz	"smbios.memory.enabled"

L_.str.4:                               ## @.str.4
	.asciz	"smbios.socket.enabled"

L_.str.5:                               ## @.str.5
	.asciz	"smbios.socket.populated"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smbios_detect                  ; -- Begin function smbios_detect
	.p2align	2
_smbios_detect:                         ; @smbios_detect
	.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]
	bl	_smbios_probe
Lloh3:
	adrp	x19, _smbios@GOTPAGE
Lloh4:
	ldr	x19, [x19, _smbios@GOTPAGEOFF]
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	cmp	w8, #1
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_4
; %bb.2:
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_smbios_parse_table
	ldr	x8, [x19, #56]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldr	x9, [x19, #8]
	cmp	x0, x8
	ccmp	x20, x9, #2, lo
	add	x20, x20, #1
	b.lo	LBB0_3
LBB0_4:
	ldp	w2, w8, [x19, #16]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
	ldp	x8, x9, [x19, #24]
	cmp	x8, #0
	ccmp	x9, #1, #0, le
	b.lt	LBB0_6
; %bb.5:
	cmp	x8, #0
	csel	x2, x8, x9, gt
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
LBB0_6:
	ldr	x2, [x19, #40]
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
LBB0_8:
	ldr	x2, [x19, #48]
	cmp	x2, #1
	b.lt	LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #8
	mov	w2, #1
	bl	_setenv
LBB0_10:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_smbios,64,3                    ; @smbios
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d"

l_.str.1:                               ; @.str.1
	.asciz	"smbios.version"

l_.str.2:                               ; @.str.2
	.asciz	"%u"

l_.str.3:                               ; @.str.3
	.asciz	"smbios.memory.enabled"

l_.str.4:                               ; @.str.4
	.asciz	"smbios.socket.enabled"

l_.str.5:                               ; @.str.5
	.asciz	"smbios.socket.populated"

.subsections_via_symbols
