	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_io
_register_io:                           ## @register_io
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %eax
	movl	$-1, %r15d
	cmpl	%edi, %eax
	jne	LBB0_11
## %bb.1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movslq	%edx, %r13
	movq	(%rsi,%r13,8), %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	-48(%rbp), %rdi
	movq	(%rbx,%r13,8), %rsi
	cmpq	%rsi, %rdi
	je	LBB0_11
## %bb.2:
	movl	%eax, %r12d
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_9
## %bb.3:
	cmpb	$61, %al
	jne	LBB0_7
## %bb.4:
	cmpb	$0, 1(%rdi)
	je	LBB0_7
## %bb.5:
	incq	%rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	-48(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	(%rbx,%r13,8), %rsi
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_read_reg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_printf
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_write_reg
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad parameter \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"%#x [%u]\n"

	.no_dead_strip	_register_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_io
_register_io:                           ; @register_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	w8, w2, #1
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	sbfiz	x23, x21, #3, #32
	ldr	x0, [x1, x23]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x22, x0
	ldr	x0, [sp, #8]
	ldr	x1, [x20, x23]
	cmp	x0, x1
	b.eq	LBB0_8
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.3:
	cmp	w8, #61
	b.ne	LBB0_7
; %bb.4:
	ldrb	w8, [x0, #1]!
	cbz	w8, LBB0_7
; %bb.5:
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
; %bb.6:
	sxtw	x8, w21
	ldr	x1, [x20, x8, lsl #3]
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_read_reg
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x1
	bl	_printf
LBB0_11:
	mov	w0, #0
	b	LBB0_9
LBB0_12:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_write_reg
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad parameter \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"%#x [%u]\n"

	.no_dead_strip	_register_io
.subsections_via_symbols
