	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hscx_init
_hscx_init:                             ## @hscx_init
	.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, %rbx
	movq	_IPAC_RAH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	callq	_WriteHSCX
	movq	_IPAC_XBCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WriteHSCX
	movq	_IPAC_RLCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WriteHSCX
	movq	(%rbx), %rax
	movq	_IPAC_TYPE_HSCX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IPAC_CCR1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$133, %edx
	callq	_WriteHSCX
	movq	_HSCX_VSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadHSCX
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_debug
	movq	_DEBUG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	_HSCXVer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$15, %r14d
	movl	(%rax,%r14,4), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	$130, %edx
	callq	_WriteHSCX
LBB0_4:
	movq	_IPAC_CCR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$48, %edx
	callq	_WriteHSCX
	movq	_IPAC_XCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_WriteHSCX
	movq	_IPAC_RCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WriteHSCX                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPAC_RAH2,4,2                  ## @IPAC_RAH2
	.comm	_IPAC_XBCH,4,2                  ## @IPAC_XBCH
	.comm	_IPAC_RLCR,4,2                  ## @IPAC_RLCR
	.comm	_IPAC_TYPE_HSCX,4,2             ## @IPAC_TYPE_HSCX
	.comm	_IPAC_CCR1,4,2                  ## @IPAC_CCR1
	.comm	_HSCX_VSTR,4,2                  ## @HSCX_VSTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: HSCX VSTR %02x\n"

	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
L_.str.1:                               ## @.str.1
	.asciz	"%s: HSCX version %s\n"

	.comm	_HSCXVer,8,3                    ## @HSCXVer
	.comm	_IPAC_CCR2,4,2                  ## @IPAC_CCR2
	.comm	_IPAC_XCCR,4,2                  ## @IPAC_XCCR
	.comm	_IPAC_RCCR,4,2                  ## @IPAC_RCCR
	.no_dead_strip	_hscx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hscx_init
_hscx_init:                             ; @hscx_init
	.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
Lloh0:
	adrp	x8, _IPAC_RAH2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPAC_RAH2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #255
	bl	_WriteHSCX
Lloh3:
	adrp	x8, _IPAC_XBCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPAC_XBCH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WriteHSCX
Lloh6:
	adrp	x8, _IPAC_RLCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPAC_RLCR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WriteHSCX
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _IPAC_TYPE_HSCX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPAC_TYPE_HSCX@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _IPAC_CCR1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IPAC_CCR1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x10]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w2, #133
	bl	_WriteHSCX
Lloh15:
	adrp	x8, _HSCX_VSTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HSCX_VSTR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadHSCX
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
	ldr	w8, [x19, #8]
Lloh20:
	adrp	x9, _DEBUG_HW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DEBUG_HW@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
Lloh23:
	adrp	x8, _HSCXVer@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HSCXVer@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	and	w9, w20, #0xf
	ldr	w2, [x8, w9, uxtw #2]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
	b	LBB0_4
LBB0_3:
	mov	w2, #130
	bl	_WriteHSCX
LBB0_4:
Lloh28:
	adrp	x8, _IPAC_CCR2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IPAC_CCR2@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #48
	bl	_WriteHSCX
Lloh31:
	adrp	x8, _IPAC_XCCR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IPAC_XCCR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	bl	_WriteHSCX
Lloh34:
	adrp	x8, _IPAC_RCCR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IPAC_RCCR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WriteHSCX
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IPAC_RAH2,4,2                  ; @IPAC_RAH2
	.comm	_IPAC_XBCH,4,2                  ; @IPAC_XBCH
	.comm	_IPAC_RLCR,4,2                  ; @IPAC_RLCR
	.comm	_IPAC_TYPE_HSCX,4,2             ; @IPAC_TYPE_HSCX
	.comm	_IPAC_CCR1,4,2                  ; @IPAC_CCR1
	.comm	_HSCX_VSTR,4,2                  ; @HSCX_VSTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: HSCX VSTR %02x\n"

	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
l_.str.1:                               ; @.str.1
	.asciz	"%s: HSCX version %s\n"

	.comm	_HSCXVer,8,3                    ; @HSCXVer
	.comm	_IPAC_CCR2,4,2                  ; @IPAC_CCR2
	.comm	_IPAC_XCCR,4,2                  ; @IPAC_XCCR
	.comm	_IPAC_RCCR,4,2                  ; @IPAC_RCCR
	.no_dead_strip	_hscx_init
.subsections_via_symbols
