	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function io_reset
LCPI0_0:
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.long	255                             ## 0xff
LCPI0_1:
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	255                             ## 0xff
LCPI0_2:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	251                             ## 0xfb
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_io_reset
	.p2align	4, 0x90
_io_reset:                              ## @io_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_system_hw@GOTPCREL(%rip), %rax
	movq	_SYSTEM_PBC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rax), %edx
	movq	_SYSTEM_MD@GOTPCREL(%rip), %rdi
	movq	_region_code@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	(%rdi), %edx
	jne	LBB0_3
## %bb.1:
	movq	_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	$1, %ecx
	orl	%esi, %ecx
	movq	_io_reg@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%rdx)
	movq	$0, 20(%rdx)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [255,0,0,255]
	movups	%xmm0, 28(%rdx)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [0,0,251,0]
	movups	%xmm0, 44(%rdx)
	movl	$0, 60(%rdx)
	movl	(%rax), %eax
	movq	_SYSTEM_MCD@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_6
## %bb.2:
	orl	$32, %ecx
	movl	%ecx, (%rdx)
	jmp	LBB0_6
LBB0_3:
	sarl	%esi
	orl	$128, %esi
	movq	_io_reg@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%esi, (%rdx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,255,0,255]
	movups	%xmm0, 4(%rdx)
	movabsq	$1095216660480, %rsi            ## imm = 0xFF00000000
	movq	%rsi, 20(%rdx)
	movq	_IO_RESET_HI@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, 52(%rdx)
	movl	(%rax), %eax
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_IO_CONT1_HI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, 52(%rdx)
LBB0_5:
	movq	%rsi, 56(%rdx)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_input_reset                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_system_hw,4,2                  ## @system_hw
	.comm	_SYSTEM_PBC,4,2                 ## @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ## @SYSTEM_MD
	.comm	_region_code,4,2                ## @region_code
	.comm	_config,4,2                     ## @config
	.comm	_io_reg,8,3                     ## @io_reg
	.comm	_SYSTEM_MCD,4,2                 ## @SYSTEM_MCD
	.comm	_IO_RESET_HI,4,2                ## @IO_RESET_HI
	.comm	_IO_CONT1_HI,4,2                ## @IO_CONT1_HI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function io_reset
lCPI0_0:
	.long	255                             ; 0xff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	255                             ; 0xff
lCPI0_1:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	251                             ; 0xfb
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_io_reset
	.p2align	2
_io_reset:                              ; @io_reset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _system_hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh2:
	adrp	x9, _SYSTEM_PBC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SYSTEM_PBC@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh4:
	adrp	x12, _SYSTEM_MD@GOTPAGE
Lloh5:
	ldr	x12, [x12, _SYSTEM_MD@GOTPAGEOFF]
	and	w11, w11, w10
Lloh6:
	ldr	w12, [x12]
Lloh7:
	adrp	x10, _region_code@GOTPAGE
Lloh8:
	ldr	x10, [x10, _region_code@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w11, w12
	b.ne	LBB0_3
; %bb.1:
Lloh10:
	adrp	x9, _config@GOTPAGE
Lloh11:
	ldr	x9, [x9, _config@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, #0x1
Lloh13:
	adrp	x11, _io_reg@GOTPAGE
Lloh14:
	ldr	x11, [x11, _io_reg@GOTPAGEOFF]
	orr	w10, w9, w10
Lloh15:
	ldr	x9, [x11]
	str	w10, [x9]
	stur	xzr, [x9, #4]
	stur	xzr, [x9, #20]
	stur	xzr, [x9, #12]
Lloh16:
	adrp	x11, lCPI0_0@PAGE
Lloh17:
	ldr	q0, [x11, lCPI0_0@PAGEOFF]
	stur	q0, [x9, #28]
Lloh18:
	adrp	x11, lCPI0_1@PAGE
Lloh19:
	ldr	q0, [x11, lCPI0_1@PAGEOFF]
	stur	q0, [x9, #44]
	str	wzr, [x9, #60]
	ldr	w8, [x8]
Lloh20:
	adrp	x11, _SYSTEM_MCD@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SYSTEM_MCD@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w8, w11
	b.eq	LBB0_6
; %bb.2:
	orr	w8, w10, #0x20
	str	w8, [x9]
	b	_input_reset
LBB0_3:
	asr	w10, w10, #1
	orr	w11, w10, #0x80
Lloh23:
	adrp	x10, _io_reg@GOTPAGE
Lloh24:
	ldr	x10, [x10, _io_reg@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	str	w11, [x10]
	movi.2d	v0, #0x0000ff00000000
	stur	q0, [x10, #4]
	movi	d0, #0x0000ff00000000
Lloh26:
	adrp	x11, _IO_RESET_HI@GOTPAGE
Lloh27:
	ldr	x11, [x11, _IO_RESET_HI@GOTPAGEOFF]
	stur	d0, [x10, #20]
Lloh28:
	ldr	w11, [x11]
	str	w11, [x10, #52]
	ldr	w8, [x8]
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh29:
	adrp	x8, _IO_CONT1_HI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IO_CONT1_HI@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w8, w8, w11
	str	w8, [x10, #52]
LBB0_5:
	str	d0, [x10, #56]
LBB0_6:
	b	_input_reset
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_system_hw,4,2                  ; @system_hw
	.comm	_SYSTEM_PBC,4,2                 ; @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ; @SYSTEM_MD
	.comm	_region_code,4,2                ; @region_code
	.comm	_config,4,2                     ; @config
	.comm	_io_reg,8,3                     ; @io_reg
	.comm	_SYSTEM_MCD,4,2                 ; @SYSTEM_MCD
	.comm	_IO_RESET_HI,4,2                ; @IO_RESET_HI
	.comm	_IO_CONT1_HI,4,2                ; @IO_CONT1_HI
.subsections_via_symbols
