	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_inout                 ## -- Begin function register_inout
	.p2align	4, 0x90
_register_inout:                        ## @register_inout
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %esi
	callq	_VERIFY_IOPORT
	movl	8(%rbx), %r9d
	movq	_IOPORT_F_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	(%rbx), %rsi
	movslq	4(%rbx), %rdi
	leaq	(%rdi,%rsi), %r8
	testl	%r9d, %eax
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	LBB0_10
## %bb.8:
	movl	20(%rbx), %r10d
	movq	_inout_handlers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	12(%rbx), %r11d
	movl	16(%rbx), %ebx
	movslq	%r8d, %rcx
	movq	%rsi, %rdx
	shlq	$4, %rdx
	addq	%rdx, %rdi
	addq	$12, %rdi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r10d, (%rdi)
	movl	%r9d, -12(%rdi)
	movl	%ebx, -4(%rdi)
	movl	%r11d, -8(%rdi)
	incq	%rsi
	addq	$16, %rdi
	cmpq	%rcx, %rsi
	jl	LBB0_9
	jmp	LBB0_10
LBB0_1:
	testl	%edi, %edi
	jle	LBB0_2
## %bb.3:
	movq	_inout_handlers@GOTPCREL(%rip), %rcx
	movq	%rsi, %rdx
	shlq	$4, %rdx
	addq	(%rcx), %rdx
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%r8, %rcx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOPORT_F_DEFAULT,4,2           ## @IOPORT_F_DEFAULT
	.comm	_inout_handlers,8,3             ## @inout_handlers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_inout                 ; -- Begin function register_inout
	.p2align	2
_register_inout:                        ; @register_inout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_VERIFY_IOPORT
Lloh0:
	adrp	x9, _IOPORT_F_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IOPORT_F_DEFAULT@GOTPAGEOFF]
	ldp	w10, w8, [x19, #4]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
Lloh2:
	ldr	w9, [x9]
	ldrsw	x13, [x19]
	add	x12, x10, x13
	tst	w9, w8
	b.eq	LBB0_8
LBB0_1:
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.2:
Lloh3:
	adrp	x10, _inout_handlers@GOTPAGE
Lloh4:
	ldr	x10, [x10, _inout_handlers@GOTPAGEOFF]
Lloh5:
	ldr	x15, [x10]
	ldp	w10, w9, [x19, #16]
	ldr	w11, [x19, #12]
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
	sxtw	x12, w12
	add	x14, x13, #1
	cmp	x14, x12
	csinc	x14, x12, x13, le
	sub	x16, x14, x13
	mov	x14, x13
	cmp	x16, #16
	b.lo	LBB0_6
; %bb.3:
	and	x17, x16, #0xfffffffffffffff0
	dup.4s	v0, w8
	dup.4s	v1, w11
	dup.4s	v2, w10
	add	x14, x17, x13
	dup.4s	v3, w9
	add	x13, x15, x13, lsl #4
	add	x0, x13, #128
	mov	x13, x17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x0, #128
	sub	x2, x0, #64
	st4.4s	{ v0, v1, v2, v3 }, [x1]
	st4.4s	{ v0, v1, v2, v3 }, [x2]
	add	x1, x0, #256
	st4.4s	{ v0, v1, v2, v3 }, [x0], #64
	st4.4s	{ v0, v1, v2, v3 }, [x0]
	mov	x0, x1
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x16, x17
	b.eq	LBB0_12
LBB0_6:
	add	x13, x15, x14, lsl #4
	add	x13, x13, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	w10, w9, [x13]
	stp	w8, w11, [x13, #-8]
	add	x14, x14, #1
	add	x13, x13, #16
	cmp	x14, x12
	b.lt	LBB0_7
	b	LBB0_12
LBB0_8:
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.9:
Lloh6:
	adrp	x11, _inout_handlers@GOTPAGE
Lloh7:
	ldr	x11, [x11, _inout_handlers@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x11, x11, x13, lsl #4
	mov	x14, x13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x11]
	tst	w15, w9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x14, x14, #1
	add	x11, x11, #16
	cmp	x14, x12
	b.lt	LBB0_10
	b	LBB0_1
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #-1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IOPORT_F_DEFAULT,4,2           ; @IOPORT_F_DEFAULT
	.comm	_inout_handlers,8,3             ; @inout_handlers
.subsections_via_symbols
