	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_utility
_read_utility:                          ## @read_utility
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	movq	_SAR_CMD_READ_UTILITY@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_SAR_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writel
	movq	%r14, %rdi
	callq	_waitfor_idle
	movq	_SAR_REG_DR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readl
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	$-1, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: No such device.\n"

	.comm	_SAR_CMD_READ_UTILITY,8,3       ## @SAR_CMD_READ_UTILITY
	.comm	_SAR_REG_CMD,4,2                ## @SAR_REG_CMD
	.comm	_SAR_REG_DR0,4,2                ## @SAR_REG_DR0
	.no_dead_strip	_read_utility
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_utility
_read_utility:                          ; @read_utility
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SAR_CMD_READ_UTILITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAR_CMD_READ_UTILITY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x20
Lloh3:
	adrp	x8, _SAR_REG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAR_REG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_writel
	mov	x0, x19
	bl	_waitfor_idle
Lloh6:
	adrp	x8, _SAR_REG_DR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAR_REG_DR0@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_readl
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: No such device.\n"

	.comm	_SAR_CMD_READ_UTILITY,8,3       ; @SAR_CMD_READ_UTILITY
	.comm	_SAR_REG_CMD,4,2                ; @SAR_REG_CMD
	.comm	_SAR_REG_DR0,4,2                ; @SAR_REG_DR0
	.no_dead_strip	_read_utility
.subsections_via_symbols
