	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmi_sel_raw_read_helper
_dmi_sel_raw_read_helper:               ## @dmi_sel_raw_read_helper
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_dmi_entry_length
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-32(%rbp), %esi
	leal	-129(%rsi), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.6:
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dmi_sel_raw_read_io
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_3:
	cmpl	$128, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$132, %esi
	jne	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_9
LBB0_7:
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dmi_sel_raw_read_phys32
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmi-sysfs: GPNV support missing.\n"

L_.str.1:                               ## @.str.1
	.asciz	"dmi-sysfs: Unknown access method %02x\n"

	.no_dead_strip	_dmi_sel_raw_read_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmi_sel_raw_read_helper
_dmi_sel_raw_read_helper:               ; @dmi_sel_raw_read_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dmi_entry_length
	cmp	w0, #3
	b.ls	LBB0_9
; %bb.1:
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #8]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	ldp	w3, w2, [x20, #4]
	ldr	w4, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_dmi_sel_raw_read_io
	b	LBB0_10
LBB0_3:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #132
	b.ne	LBB0_7
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldp	w3, w2, [x20, #4]
	ldr	w4, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_dmi_sel_raw_read_phys32
	b	LBB0_10
LBB0_7:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_pr_info
LBB0_9:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmi-sysfs: GPNV support missing.\n"

l_.str.1:                               ; @.str.1
	.asciz	"dmi-sysfs: Unknown access method %02x\n"

	.no_dead_strip	_dmi_sel_raw_read_helper
.subsections_via_symbols
