	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_slot_info                  ## -- Begin function get_slot_info
	.p2align	4, 0x90
_get_slot_info:                         ## @get_slot_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %r14d
	leaq	_get_slot_info.buf(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r13d, %ecx
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%eax, %r15d
	leaq	_get_slot_info.buf(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	cmpl	%r15d, %eax
	jne	LBB0_13
## %bb.3:
	leaq	_get_slot_info.buf(%rip), %r15
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movl	%eax, %r14d
	movq	%r15, -48(%rbp)
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %rdi
	callq	_atoi
	cmpl	%r13d, %eax
	jne	LBB0_12
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r13
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r15
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.11:
	movl	$126, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_19
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	leaq	_get_slot_info.buf(%rip), %rcx
	xorl	%edi, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_warnc
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_warnc
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
LBB0_16:
	callq	_warn
LBB0_17:
	movl	$-1, %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	%r12, %rbx
	movq	%r15, %rdi
	callq	_strdup
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	cmpq	$0, (%rbx)
	je	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	cmpq	$0, (%r12)
	jne	LBB0_18
LBB0_24:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_slot_info.buf,1024,4 ## @get_slot_info.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"N%d"

L_.str.1:                               ## @.str.1
	.asciz	"write"

L_.str.2:                               ## @.str.2
	.asciz	"read"

L_.str.3:                               ## @.str.3
	.asciz	"~"

L_.str.4:                               ## @.str.4
	.asciz	"%1d"

L_.str.5:                               ## @.str.5
	.asciz	"strdup"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid response: %*s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_slot_info                  ; -- Begin function get_slot_info
	.p2align	2
_get_slot_info:                         ; @get_slot_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x25, x1
	mov	x24, x0
Lloh0:
	adrp	x0, _get_slot_info.buf@PAGE
Lloh1:
	add	x0, x0, _get_slot_info.buf@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1024
	mov	x3, x25
	bl	_snprintf
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x23, x0
Lloh4:
	adrp	x1, _get_slot_info.buf@PAGE
Lloh5:
	add	x1, x1, _get_slot_info.buf@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_write
	tbnz	w0, #31, LBB0_15
; %bb.2:
	cmp	w0, w23
	b.ne	LBB0_13
; %bb.3:
Lloh6:
	adrp	x23, _get_slot_info.buf@PAGE
Lloh7:
	add	x23, x23, _get_slot_info.buf@PAGEOFF
	mov	x0, x24
	mov	x1, x23
	mov	w2, #1024
	bl	_read
	tbnz	w0, #31, LBB0_16
; %bb.4:
	mov	x24, x0
	str	x23, [sp, #24]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_12
; %bb.5:
	bl	_atoi
	cmp	w0, w25
	b.ne	LBB0_12
; %bb.6:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_12
; %bb.7:
	mov	x25, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_12
; %bb.8:
	mov	x26, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	cbz	x0, LBB0_12
; %bb.9:
	mov	x27, x0
	ldr	x0, [sp, #24]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.10:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_20
; %bb.11:
	mov	w1, #126
	bl	_strchr
	cbz	x0, LBB0_20
LBB0_12:
	stp	x24, x23, [sp]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	w0, #0
	bl	_warnc
	b	LBB0_18
LBB0_15:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_17:
	bl	_warn
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	mov	x0, x25
	bl	_strdup
	str	x0, [x20]
	cbz	x0, LBB0_26
; %bb.21:
	mov	x0, x26
	bl	_strdup
	str	x0, [x19]
	cbz	x0, LBB0_26
; %bb.22:
	mov	x0, x27
	bl	_strdup
	str	x0, [x21]
	cbz	x0, LBB0_26
; %bb.23:
	ldr	x8, [x20]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	x8, [x19]
	cbz	x8, LBB0_26
; %bb.25:
	mov	w0, #0
	b	LBB0_19
LBB0_26:
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_17
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_slot_info.buf,1024,0 ; @get_slot_info.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"N%d"

l_.str.1:                               ; @.str.1
	.asciz	"write"

l_.str.2:                               ; @.str.2
	.asciz	"read"

l_.str.3:                               ; @.str.3
	.asciz	"~"

l_.str.4:                               ; @.str.4
	.asciz	"%1d"

l_.str.5:                               ; @.str.5
	.asciz	"strdup"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid response: %*s"

.subsections_via_symbols
