	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipac_init
_ipac_init:                             ## @ipac_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
	movl	(%rdi), %eax
	movq	_IPAC_TYPE_HSCX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	callq	_hscx_init
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_hscx_init
	movq	_IPAC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadIPAC
	jmp	LBB0_5
LBB0_2:
	movq	_IPAC_TYPE_IPAC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_hscx_init
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_hscx_init
	movq	_IPAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPAC__ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WriteIPAC
	movq	_IPAC_CONF@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ReadIPAC
	movl	8(%rbx), %esi
	movl	24(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_debug
	movl	(%r14), %esi
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	callq	_WriteIPAC
	movq	_IPAC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadIPAC
	movq	16(%rbx), %rcx
	movq	_DEBUG_HW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_notice
LBB0_5:
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_isac_init                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPAC_TYPE_HSCX,4,2             ## @IPAC_TYPE_HSCX
	.comm	_IPAC_ID,4,2                    ## @IPAC_ID
	.comm	_IPAC_TYPE_IPAC,4,2             ## @IPAC_TYPE_IPAC
	.comm	_IPAC_MASK,4,2                  ## @IPAC_MASK
	.comm	_IPAC__ON,4,2                   ## @IPAC__ON
	.comm	_IPAC_CONF,4,2                  ## @IPAC_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: IPAC CONF %02x/%02x\n"

	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
L_.str.1:                               ## @.str.1
	.asciz	"%s: IPAC Design ID %02x\n"

	.no_dead_strip	_ipac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipac_init
_ipac_init:                             ; @ipac_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IPAC_TYPE_HSCX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPAC_TYPE_HSCX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_hscx_init
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_hscx_init
Lloh3:
	adrp	x8, _IPAC_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPAC_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadIPAC
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x9, _IPAC_TYPE_IPAC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPAC_TYPE_IPAC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_hscx_init
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_hscx_init
Lloh9:
	adrp	x8, _IPAC_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPAC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _IPAC__ON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPAC__ON@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_WriteIPAC
Lloh15:
	adrp	x20, _IPAC_CONF@GOTPAGE
Lloh16:
	ldr	x20, [x20, _IPAC_CONF@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ReadIPAC
	mov	x2, x0
	ldr	w1, [x19, #8]
	ldr	w3, [x19, #24]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w1, [x20]
	ldr	w2, [x19, #24]
	mov	x0, x19
	bl	_WriteIPAC
Lloh19:
	adrp	x8, _IPAC_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPAC_ID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadIPAC
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _DEBUG_HW@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DEBUG_HW@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w1, [x19, #8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_5:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_isac_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPAC_TYPE_HSCX,4,2             ; @IPAC_TYPE_HSCX
	.comm	_IPAC_ID,4,2                    ; @IPAC_ID
	.comm	_IPAC_TYPE_IPAC,4,2             ; @IPAC_TYPE_IPAC
	.comm	_IPAC_MASK,4,2                  ; @IPAC_MASK
	.comm	_IPAC__ON,4,2                   ; @IPAC__ON
	.comm	_IPAC_CONF,4,2                  ; @IPAC_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: IPAC CONF %02x/%02x\n"

	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
l_.str.1:                               ; @.str.1
	.asciz	"%s: IPAC Design ID %02x\n"

	.no_dead_strip	_ipac_init
.subsections_via_symbols
