	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smart1_submit_command
_smart1_submit_command:                 ## @smart1_submit_command
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, 8(%rsi)
	movq	_CHANNEL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMART1_SYSTEM_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_outb
	movl	4(%rbx), %edi
	movq	_SMART1_LISTADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_outl
	movl	(%rbx), %edi
	movq	_SMART1_LISTLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_outw
	movq	_CHANNEL_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMART1_LOCAL_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_CLEAR,4,2              ## @CHANNEL_CLEAR
	.comm	_SMART1_SYSTEM_DOORBELL,8,3     ## @SMART1_SYSTEM_DOORBELL
	.comm	_SMART1_LISTADDR,8,3            ## @SMART1_LISTADDR
	.comm	_SMART1_LISTLEN,8,3             ## @SMART1_LISTLEN
	.comm	_CHANNEL_BUSY,4,2               ## @CHANNEL_BUSY
	.comm	_SMART1_LOCAL_DOORBELL,8,3      ## @SMART1_LOCAL_DOORBELL
	.no_dead_strip	_smart1_submit_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smart1_submit_command
_smart1_submit_command:                 ; @smart1_submit_command
	.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
	str	xzr, [x1, #8]
Lloh0:
	adrp	x8, _CHANNEL_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SMART1_SYSTEM_DOORBELL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMART1_SYSTEM_DOORBELL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _SMART1_LISTADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMART1_LISTADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	ldr	w0, [x19]
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _SMART1_LISTLEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMART1_LISTLEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outw
Lloh12:
	adrp	x8, _CHANNEL_BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHANNEL_BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _SMART1_LOCAL_DOORBELL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SMART1_LOCAL_DOORBELL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_CLEAR,4,2              ; @CHANNEL_CLEAR
	.comm	_SMART1_SYSTEM_DOORBELL,8,3     ; @SMART1_SYSTEM_DOORBELL
	.comm	_SMART1_LISTADDR,8,3            ; @SMART1_LISTADDR
	.comm	_SMART1_LISTLEN,8,3             ; @SMART1_LISTLEN
	.comm	_CHANNEL_BUSY,4,2               ; @CHANNEL_BUSY
	.comm	_SMART1_LOCAL_DOORBELL,8,3      ; @SMART1_LOCAL_DOORBELL
	.no_dead_strip	_smart1_submit_command
.subsections_via_symbols
