	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_write
_smi_write:                             ## @smi_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_smi_start
	movl	$10, %edi
	movl	$4, %esi
	callq	_smi_writeBits
	movl	$4, %edi
	movl	$3, %esi
	callq	_smi_writeBits
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_smi_writeBits
	xorl	%eax, %eax
	callq	_smi_waitAck
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	%r15d, %eax
	movzbl	%al, %edi
	movl	$8, %esi
	callq	_smi_writeBits
	xorl	%eax, %eax
	callq	_smi_waitAck
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	%r15d, %eax
	movzbl	%ah, %edi
	movl	$8, %esi
	callq	_smi_writeBits
	xorl	%eax, %eax
	callq	_smi_waitAck
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movzbl	%bl, %edi
	movl	$8, %esi
	callq	_smi_writeBits
	xorl	%eax, %eax
	callq	_smi_waitAck
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movzbl	%bh, %edi
	movl	$8, %esi
	callq	_smi_writeBits
	xorl	%eax, %eax
	callq	_smi_waitAck
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_smi_stop
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_smi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_write
_smi_write:                             ; @smi_write
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_smi_start
	mov	w0, #10
	mov	w1, #4
	bl	_smi_writeBits
	mov	w0, #4
	mov	w1, #3
	bl	_smi_writeBits
	mov	w0, #0
	mov	w1, #1
	bl	_smi_writeBits
	bl	_smi_waitAck
	cbnz	x0, LBB0_5
; %bb.1:
	and	w0, w20, #0xff
	mov	w1, #8
	bl	_smi_writeBits
	bl	_smi_waitAck
	cbnz	x0, LBB0_5
; %bb.2:
	ubfx	w0, w20, #8, #8
	mov	w1, #8
	bl	_smi_writeBits
	bl	_smi_waitAck
	cbnz	x0, LBB0_5
; %bb.3:
	and	w0, w19, #0xff
	mov	w1, #8
	bl	_smi_writeBits
	bl	_smi_waitAck
	cbnz	x0, LBB0_5
; %bb.4:
	ubfx	w0, w19, #8, #8
	mov	w1, #8
	bl	_smi_writeBits
	bl	_smi_waitAck
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_smi_stop
	mov	w0, #0
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_smi_write
.subsections_via_symbols
