	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_regset
_get_regset:                            ## @get_regset
	.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, -16(%rbp)
	addl	$-129, %edi
	movl	$-1, %eax
	cmpl	$2, %edi
	ja	LBB0_2
## %bb.1:
	movq	%rcx, %r8
	movl	%edx, %ecx
	movslq	%edi, %rax
	leaq	l_switch.table.get_regset(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	leaq	l_switch.table.get_regset.1(%rip), %rsi
	movq	(%rsi,%rax,8), %rax
	movl	(%rax), %ebx
	movl	(%rdx), %esi
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	callq	_devctl
	movq	_EOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$-1, %eax
	cmovel	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCMD_PROC_GETGREG,4,2          ## @DCMD_PROC_GETGREG
	.comm	_DCMD_PROC_SETGREG,4,2          ## @DCMD_PROC_SETGREG
	.comm	_DCMD_PROC_GETFPREG,4,2         ## @DCMD_PROC_GETFPREG
	.comm	_DCMD_PROC_SETFPREG,4,2         ## @DCMD_PROC_SETFPREG
	.comm	_DCMD_PROC_GETALTREG,4,2        ## @DCMD_PROC_GETALTREG
	.comm	_DCMD_PROC_SETALTREG,4,2        ## @DCMD_PROC_SETALTREG
	.comm	_ctl_fd,4,2                     ## @ctl_fd
	.comm	_EOK,8,3                        ## @EOK
	.no_dead_strip	_get_regset
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.get_regset
l_switch.table.get_regset:
	.quad	_DCMD_PROC_GETGREG
	.quad	_DCMD_PROC_GETFPREG
	.quad	_DCMD_PROC_GETALTREG

	.p2align	3                               ## @switch.table.get_regset.1
l_switch.table.get_regset.1:
	.quad	_DCMD_PROC_SETGREG
	.quad	_DCMD_PROC_SETFPREG
	.quad	_DCMD_PROC_SETALTREG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_regset
_get_regset:                            ; @get_regset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	x1, [sp, #8]
	sub	w8, w0, #129
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	mov	x4, x3
	mov	x3, x2
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.get_regset@PAGE
Lloh1:
	add	x9, x9, l_switch.table.get_regset@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.get_regset.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.get_regset.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w19, [x8]
	ldr	w1, [x9]
Lloh4:
	adrp	x8, _ctl_fd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ctl_fd@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x2, sp, #8
	bl	_devctl
Lloh7:
	adrp	x8, _EOK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	csinv	w0, w19, wzr, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DCMD_PROC_GETGREG,4,2          ; @DCMD_PROC_GETGREG
	.comm	_DCMD_PROC_SETGREG,4,2          ; @DCMD_PROC_SETGREG
	.comm	_DCMD_PROC_GETFPREG,4,2         ; @DCMD_PROC_GETFPREG
	.comm	_DCMD_PROC_SETFPREG,4,2         ; @DCMD_PROC_SETFPREG
	.comm	_DCMD_PROC_GETALTREG,4,2        ; @DCMD_PROC_GETALTREG
	.comm	_DCMD_PROC_SETALTREG,4,2        ; @DCMD_PROC_SETALTREG
	.comm	_ctl_fd,4,2                     ; @ctl_fd
	.comm	_EOK,8,3                        ; @EOK
	.no_dead_strip	_get_regset
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.get_regset
l_switch.table.get_regset:
	.quad	_DCMD_PROC_GETGREG
	.quad	_DCMD_PROC_GETFPREG
	.quad	_DCMD_PROC_GETALTREG

	.p2align	3                               ; @switch.table.get_regset.1
l_switch.table.get_regset.1:
	.quad	_DCMD_PROC_SETGREG
	.quad	_DCMD_PROC_SETFPREG
	.quad	_DCMD_PROC_SETALTREG

.subsections_via_symbols
