	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_initfw            ## -- Begin function hw_atl_utils_initfw
	.p2align	4, 0x90
_hw_atl_utils_initfw:                   ## @hw_atl_utils_initfw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_hw_atl_utils_soft_reset
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hw_atl_utils_hw_chip_features_init
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hw_atl_utils_get_fw_version
	movq	_HW_ATL_FW_VER_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_hw_atl_utils_ver_match
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_HW_ATL_FW_VER_2X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_hw_atl_utils_ver_match
	movq	_aq_fw_2x_ops@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_HW_ATL_FW_VER_3X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	%rcx, %r12
	callq	_hw_atl_utils_ver_match
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_aq_pr_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_aq_fw_1x_ops@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	%rcx, (%r14)
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rcx)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_FW_VER_1X,4,2           ## @HW_ATL_FW_VER_1X
	.comm	_aq_fw_1x_ops,8,3               ## @aq_fw_1x_ops
	.comm	_HW_ATL_FW_VER_2X,4,2           ## @HW_ATL_FW_VER_2X
	.comm	_aq_fw_2x_ops,8,3               ## @aq_fw_2x_ops
	.comm	_HW_ATL_FW_VER_3X,4,2           ## @HW_ATL_FW_VER_3X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad FW version detected: %x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hw_atl_utils_initfw            ; -- Begin function hw_atl_utils_initfw
	.p2align	2
_hw_atl_utils_initfw:                   ; @hw_atl_utils_initfw
	.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	x20, x1
	mov	x19, x0
	bl	_hw_atl_utils_soft_reset
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	add	x1, x19, #12
	mov	x0, x19
	bl	_hw_atl_utils_hw_chip_features_init
	add	x21, x19, #8
	mov	x0, x19
	mov	x1, x21
	bl	_hw_atl_utils_get_fw_version
Lloh0:
	adrp	x8, _HW_ATL_FW_VER_1X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_FW_VER_1X@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_hw_atl_utils_ver_match
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _HW_ATL_FW_VER_2X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HW_ATL_FW_VER_2X@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_hw_atl_utils_ver_match
	cbz	x0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _HW_ATL_FW_VER_3X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HW_ATL_FW_VER_3X@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_hw_atl_utils_ver_match
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x21]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_aq_pr_err
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
Lloh14:
	adrp	x8, _aq_fw_1x_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _aq_fw_1x_ops@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _aq_fw_2x_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _aq_fw_2x_ops@GOTPAGEOFF]
LBB0_8:
	str	x8, [x20]
	str	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	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
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_FW_VER_1X,4,2           ; @HW_ATL_FW_VER_1X
	.comm	_aq_fw_1x_ops,8,3               ; @aq_fw_1x_ops
	.comm	_HW_ATL_FW_VER_2X,4,2           ; @HW_ATL_FW_VER_2X
	.comm	_aq_fw_2x_ops,8,3               ; @aq_fw_2x_ops
	.comm	_HW_ATL_FW_VER_3X,4,2           ; @HW_ATL_FW_VER_3X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad FW version detected: %x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
