	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smiapp_write                   ## -- Begin function smiapp_write
	.p2align	4, 0x90
_smiapp_write:                          ## @smiapp_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, -16(%rbp)
	movl	%edx, -12(%rbp)
	movq	_reg_access@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	movl	$1, %edx
	callq	_smiapp_call_quirk
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	(%rdx), %edx
	addl	%eax, %edx
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	-16(%rbp), %esi
	movl	-12(%rbp), %edx
	movq	%rbx, %rdi
	callq	_smiapp_write_no_quirk
LBB0_3:
	movl	%eax, %ecx
LBB0_4:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_access,4,2                 ## @reg_access
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smiapp_write                   ; -- Begin function smiapp_write
	.p2align	2
_smiapp_write:                          ; @smiapp_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	w2, w1, [sp, #8]
Lloh0:
	adrp	x8, _reg_access@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg_access@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w2, #1
	bl	_smiapp_call_quirk
Lloh3:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_smiapp_write_no_quirk
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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
.subsections_via_symbols
