	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	cmpl	$2, %edi
	je	LBB0_9
## %bb.1:
	movl	%edi, %esi
	cmpl	$1, %edi
	jne	LBB0_12
## %bb.2:
	movq	(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	movq	%rax, %r15
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_14
## %bb.3:
	cmpb	$61, %al
	jne	LBB0_4
## %bb.5:
	incq	%r15
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_str_to_number
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	jmp	LBB0_7
LBB0_9:
	movq	(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	je	LBB0_10
LBB0_4:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%rbx), %rdi
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_str_to_number
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_14:
	movq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	movl	%r14d, %esi
	callq	_read_reg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	-32(%rbp), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%rdx, %rsi
	callq	_printf
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movq	-40(%rbp), %rdi
	movq	-32(%rbp), %rdx
	movl	%r14d, %esi
	callq	_write_reg
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid register \"%s\""

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid value \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"reg: invalid number of arguments (%d)"

L_.str.3:                               ## @.str.3
	.asciz	"0x%llx [%llu]\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, #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, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #2
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [x20]
	add	x1, sp, #24
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbz	w8, LBB0_14
; %bb.3:
	cmp	w8, #61
	b.ne	LBB0_7
; %bb.4:
	add	x20, x0, #1
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.5:
	str	x20, [sp]
	b	LBB0_11
LBB0_6:
	ldr	x0, [x20]
	add	x1, sp, #24
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
LBB0_7:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_8:
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
	ldr	x0, [x20, #8]
	add	x2, sp, #16
	mov	x1, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.10:
	ldr	x8, [x20, #8]
	str	x8, [sp]
LBB0_11:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_warnx
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_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:
	ldr	x0, [sp, #24]
	add	x2, sp, #16
	mov	x1, x19
	bl	_read_reg
	cbnz	w0, LBB0_13
; %bb.15:
	ldr	x1, [sp, #16]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x1
	bl	_printf
	mov	w0, #0
	b	LBB0_13
LBB0_16:
	ldp	x2, x0, [sp, #16]
	mov	x1, x19
	bl	_write_reg
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid register \"%s\""

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid value \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"reg: invalid number of arguments (%d)"

l_.str.3:                               ; @.str.3
	.asciz	"0x%llx [%llu]\n"

	.no_dead_strip	_register_io
.subsections_via_symbols
