	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function host_reset
LCPI0_0:
	.long	63                              ## 0x3f
	.long	4915                            ## 0x1333
	.long	4294967294                      ## 0xfffffffe
	.long	2147483679                      ## 0x8000001f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_host_reset:                            ## @host_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	andl	$768, 16(%rdi)                  ## imm = 0x300
	movl	$-1, 56(%rdi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [63,4915,4294967294,2147483679]
	movups	%xmm0, 20(%rdi)
	cmpq	$0, 80(%rdi)
	je	LBB0_3
## %bb.1:
	movq	72(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$-2, %edx
	movl	$-1, %ecx
	callq	*%rax
LBB0_3:
	movl	(%r14), %eax
	shll	$16, %eax
	movl	%eax, 36(%r14)
	cmpl	$0, 64(%r14)
	jne	LBB0_5
## %bb.4:
	andb	$-2, 17(%r14)
LBB0_5:
	movq	48(%r14), %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_be32_add_cpu
	movl	4(%r14), %edi
	shll	$16, %edi
	orl	8(%r14), %edi
	callq	_cpu_to_be32
	movq	48(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	8(%r14), %esi
	addl	$2, %esi
	movl	%esi, %ebx
	shll	$16, %ebx
	movq	48(%r14), %rdi
	addq	$8, %rdi
	callq	_csr_crc16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	48(%r14), %rcx
	movq	%rax, (%rcx)
	movq	40(%r14), %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_be32_add_cpu
	movq	40(%r14), %rdi
	addq	$8, %rdi
	movl	$1009, %esi                     ## imm = 0x3F1
	callq	_csr_crc16
	orl	$66125824, %eax                 ## imm = 0x3F10000
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	40(%r14), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_host_reset
.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 host_reset
lCPI0_0:
	.long	63                              ; 0x3f
	.long	4915                            ; 0x1333
	.long	4294967294                      ; 0xfffffffe
	.long	2147483679                      ; 0x8000001f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_host_reset:                            ; @host_reset
	.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	w8, [x0, #16]
	and	w8, w8, #0x300
	str	w8, [x0, #16]
	mov	w8, #-1
	str	w8, [x0, #56]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x0, #20]
	ldr	x8, [x0, #80]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #-2
	mov	w3, #-1
	blr	x8
LBB0_3:
	ldr	w8, [x19]
	lsl	w8, w8, #16
	str	w8, [x19, #36]
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	and	w8, w8, #0xfffffeff
	str	w8, [x19, #16]
LBB0_5:
	ldr	x8, [x19, #48]
	add	x0, x8, #8
	mov	w1, #1
	bl	_be32_add_cpu
	ldp	w8, w9, [x19, #4]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_be32
	ldr	x8, [x19, #48]
	str	x0, [x8, #16]
	ldr	w8, [x19, #8]
	add	w20, w8, #2
	ldr	x8, [x19, #48]
	add	x0, x8, #8
	mov	x1, x20
	bl	_csr_crc16
	orr	w0, w0, w20, lsl #16
	bl	_cpu_to_be32
	ldr	x8, [x19, #48]
	str	x0, [x8]
	ldr	x8, [x19, #40]
	add	x0, x8, #8
	mov	w1, #1
	bl	_be32_add_cpu
	ldr	x8, [x19, #40]
	add	x0, x8, #8
	mov	w1, #1009
	bl	_csr_crc16
	mov	w8, #66125824
	orr	w0, w0, w8
	bl	_cpu_to_be32
	ldr	x8, [x19, #40]
	str	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_host_reset
.subsections_via_symbols
