	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_slot_number                ## -- Begin function get_slot_number
	.p2align	4, 0x90
_get_slot_number:                       ## @get_slot_number
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_write
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.2:
	leaq	-24(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movb	$0, -17(%rbp)
	leaq	L_.str.4(%rip), %rsi
	leaq	-24(%rbp), %rdi
	leaq	-28(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.4:
	movl	-28(%rbp), %eax
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
	callq	_warn
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	xorl	%edi, %edi
	callq	_warnc
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S"

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

L_.str.2:                               ## @.str.2
	.asciz	"write: fail."

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Invalid response."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_slot_number                ; -- Begin function get_slot_number
	.p2align	2
_get_slot_number:                       ; @get_slot_number
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_write
	cmp	w0, #0
	b.le	LBB0_5
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.2:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_read
	tbnz	w0, #31, LBB0_7
; %bb.3:
	strb	wzr, [sp, #23]
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [sp, #12]
	b	LBB0_12
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_warn
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	mov	w0, #0
	bl	_warnc
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S"

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

l_.str.2:                               ; @.str.2
	.asciz	"write: fail."

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Invalid response."

.subsections_via_symbols
