	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smart1_intr_mask
_smart1_intr_mask:                      ## @smart1_intr_mask
	.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	%rsi, %rax
	movq	(%rdi), %rsi
	cmpq	$1, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_SMART1_SYSTEM_DOORBELL@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$253, %edi
	callq	_outb
	movq	_CHANNEL_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMART1_LOCAL_DOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movq	_SMART1_INTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$1, %edi
	callq	_outb
	movq	_SMART1_SYSTEM_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$1, %edi
	jmp	LBB0_3
LBB0_2:
	addq	$3214, %rsi                     ## imm = 0xC8E
	xorl	%edi, %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMART1_SYSTEM_DOORBELL,8,3     ## @SMART1_SYSTEM_DOORBELL
	.comm	_CHANNEL_BUSY,4,2               ## @CHANNEL_BUSY
	.comm	_SMART1_LOCAL_DOORBELL,8,3      ## @SMART1_LOCAL_DOORBELL
	.comm	_SMART1_INTR_MASK,8,3           ## @SMART1_INTR_MASK
	.comm	_SMART1_SYSTEM_MASK,8,3         ## @SMART1_SYSTEM_MASK
	.no_dead_strip	_smart1_intr_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smart1_intr_mask
_smart1_intr_mask:                      ; @smart1_intr_mask
	.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
	ldr	x8, [x0]
	cmp	x1, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _SMART1_SYSTEM_DOORBELL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMART1_SYSTEM_DOORBELL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #253
	bl	_outb
Lloh3:
	adrp	x8, _CHANNEL_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SMART1_LOCAL_DOORBELL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMART1_LOCAL_DOORBELL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _SMART1_INTR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMART1_INTR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_outb
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _SMART1_SYSTEM_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SMART1_SYSTEM_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	add	x1, x8, #3214
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.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	_SMART1_SYSTEM_DOORBELL,8,3     ; @SMART1_SYSTEM_DOORBELL
	.comm	_CHANNEL_BUSY,4,2               ; @CHANNEL_BUSY
	.comm	_SMART1_LOCAL_DOORBELL,8,3      ; @SMART1_LOCAL_DOORBELL
	.comm	_SMART1_INTR_MASK,8,3           ; @SMART1_INTR_MASK
	.comm	_SMART1_SYSTEM_MASK,8,3         ; @SMART1_SYSTEM_MASK
	.no_dead_strip	_smart1_intr_mask
.subsections_via_symbols
