	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbios_find_struct
_smbios_find_struct:                    ## @smbios_find_struct
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_smbios@GOTPCREL(%rip), %r12
	movq	16(%r12), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.3:
	movl	%edi, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SMBIOS_GET8
	cmpl	%r15d, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_SMBIOS_GETSTR
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SMBIOS_GET16
	addq	$4, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	movslq	(%r12), %rax
	shlq	$2, %rax
	addq	16(%r12), %rax
	cmpq	%rax, %rbx
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	8(%r12), %r13
	jb	LBB0_4
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, %r14
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smbios,24,3                    ## @smbios
	.no_dead_strip	_smbios_find_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbios_find_struct
_smbios_find_struct:                    ; @smbios_find_struct
	.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
Lloh0:
	adrp	x21, _smbios@GOTPAGE
Lloh1:
	ldr	x21, [x21, _smbios@GOTPAGEOFF]
	ldr	x20, [x21, #16]
	cbz	x20, LBB0_8
; %bb.1:
	ldr	w8, [x21]
	ldr	x9, [x21, #8]
	cmp	w8, #1
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_7
; %bb.2:
	mov	x19, x0
	mov	x22, #0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x20
	mov	w1, #0
	bl	_SMBIOS_GET8
	cmp	w0, w19
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_SMBIOS_GETSTR
	mov	x20, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #0
	bl	_SMBIOS_GET16
	add	x20, x20, #4
	cbnz	x0, LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #4
	add	x22, x22, #1
	ldrsw	x8, [x21]
	ldp	x10, x9, [x21, #8]
	add	x8, x9, x8, lsl #2
	cmp	x20, x8
	ccmp	x22, x10, #2, lo
	b.lo	LBB0_3
LBB0_7:
	mov	x20, #0
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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_smbios,24,3                    ; @smbios
	.no_dead_strip	_smbios_find_struct
.subsections_via_symbols
