	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_init                   ## -- Begin function fjes_hw_init
	.p2align	4, 0x90
_fjes_hw_init:                          ## @fjes_hw_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_fjes_hw_iomap
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_fjes_hw_reset
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_REG_ICTL_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_fjes_hw_set_irqmask
	leaq	36(%rbx), %rdi
	movq	_fjes_hw_update_zone_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	32(%rbx), %rdi
	movq	_fjes_hw_epstop_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_fjes_hw_get_max_epid
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_fjes_hw_get_my_epid
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	cmpq	%rcx, %rax
	jge	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_fjes_hw_setup
	movl	%eax, %r14d
	movq	_FJES_DEBUG_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_vzalloc
	movl	%eax, 20(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	%r14d, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_REG_ICTL_MASK_ALL,4,2          ## @REG_ICTL_MASK_ALL
	.comm	_fjes_hw_update_zone_task,4,2   ## @fjes_hw_update_zone_task
	.comm	_fjes_hw_epstop_task,4,2        ## @fjes_hw_epstop_task
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_FJES_DEBUG_BUFFER_SIZE,4,2     ## @FJES_DEBUG_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_init                   ; -- Begin function fjes_hw_init
	.p2align	2
_fjes_hw_init:                          ; @fjes_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_fjes_hw_iomap
	str	w0, [x19, #40]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_fjes_hw_reset
	cbnz	w0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _REG_ICTL_MASK_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ICTL_MASK_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_fjes_hw_set_irqmask
	add	x0, x19, #36
Lloh3:
	adrp	x8, _fjes_hw_update_zone_task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fjes_hw_update_zone_task@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #32
Lloh6:
	adrp	x8, _fjes_hw_epstop_task@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fjes_hw_epstop_task@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #24
	bl	_mutex_init
	add	x0, x19, #28
	bl	_spin_lock_init
	mov	x0, x19
	bl	_fjes_hw_get_max_epid
	str	x0, [x19]
	mov	x0, x19
	bl	_fjes_hw_get_my_epid
	str	x0, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_fjes_hw_setup
	mov	x20, x0
Lloh9:
	adrp	x21, _FJES_DEBUG_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _FJES_DEBUG_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_vzalloc
	ldr	w8, [x21]
	stp	w8, w0, [x19, #16]
	mov	x0, x20
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_REG_ICTL_MASK_ALL,4,2          ; @REG_ICTL_MASK_ALL
	.comm	_fjes_hw_update_zone_task,4,2   ; @fjes_hw_update_zone_task
	.comm	_fjes_hw_epstop_task,4,2        ; @fjes_hw_epstop_task
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_FJES_DEBUG_BUFFER_SIZE,4,2     ; @FJES_DEBUG_BUFFER_SIZE
.subsections_via_symbols
