	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_read_quirk
_smiapp_read_quirk:                     ## @smiapp_read_quirk
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	movq	$0, (%rdx)
	movq	_reg_access@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_smiapp_call_quirk
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movl	$1, %ecx
	callq	___smiapp_read
	jmp	LBB0_5
LBB0_4:
	callq	_smiapp_read_no_quirk
LBB0_5:
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_access,4,2                 ## @reg_access
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	_smiapp_read_quirk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_read_quirk
_smiapp_read_quirk:                     ; @smiapp_read_quirk
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
	str	x1, [sp, #8]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _reg_access@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg_access@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #0
	mov	x4, x19
	bl	_smiapp_call_quirk
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _ENOIOCTLCMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x8
	tbnz	w8, #31, LBB0_5
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x19
	cbz	w21, LBB0_4
; %bb.3:
	mov	w3, #1
	bl	___smiapp_read
	b	LBB0_5
LBB0_4:
	bl	_smiapp_read_no_quirk
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_access,4,2                 ; @reg_access
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	_smiapp_read_quirk
.subsections_via_symbols
