	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function q40_ide_setup_ports
_q40_ide_setup_ports:                   ## @q40_ide_setup_ports
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_Q40_ISA_IO_W
	movl	%eax, 72(%r15)
	leaq	1(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 64(%r15)
	leaq	2(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 56(%r15)
	leaq	3(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 48(%r15)
	leaq	4(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 40(%r15)
	leaq	5(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 32(%r15)
	leaq	6(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 24(%r15)
	leaq	7(%rbx), %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 16(%r15)
	addq	$518, %rbx                      ## imm = 0x206
	movq	%rbx, %rdi
	callq	_Q40_ISA_IO_B
	movq	%rax, 8(%r15)
	movl	%r14d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_q40_ide_setup_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function q40_ide_setup_ports
_q40_ide_setup_ports:                   ; @q40_ide_setup_ports
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	x0, x21
	bl	_Q40_ISA_IO_W
	str	w0, [x20, #72]
	add	x0, x21, #1
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #64]
	add	x0, x21, #2
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #56]
	add	x0, x21, #3
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #48]
	add	x0, x21, #4
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #40]
	add	x0, x21, #5
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #32]
	add	x0, x21, #6
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #24]
	add	x0, x21, #7
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #16]
	add	x0, x21, #518
	bl	_Q40_ISA_IO_B
	str	x0, [x20, #8]
	str	w19, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_q40_ide_setup_ports
.subsections_via_symbols
