	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_crash_handler
_ehea_crash_handler:                    ## @ehea_crash_handler
	.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	_ehea_fw_handles@GOTPCREL(%rip), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_FORCE_FREE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_ehea_h_free_resource
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edi
	movl	(%r14), %edx
	callq	_ehea_h_free_resource
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_ehea_bcmc_regs@GOTPCREL(%rip), %r14
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.7:
	movl	$12, %ebx
	movl	$1, %r15d
	movq	_H_DEREG_BCMC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx), %edi
	movl	-4(%rax,%rbx), %esi
	movl	-12(%rax,%rbx), %ecx
	movl	-8(%rax,%rbx), %edx
	movl	(%r12), %r9d
	xorl	%r8d, %r8d
	callq	_ehea_h_reg_dereg_bcmc
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rax
	addq	$16, %rbx
	incq	%r15
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehea_fw_handles,16,3           ## @ehea_fw_handles
	.comm	_FORCE_FREE,4,2                 ## @FORCE_FREE
	.comm	_ehea_bcmc_regs,16,3            ## @ehea_bcmc_regs
	.comm	_H_DEREG_BCMC,4,2               ## @H_DEREG_BCMC
	.no_dead_strip	_ehea_crash_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_crash_handler
_ehea_crash_handler:                    ; @ehea_crash_handler
	.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
Lloh0:
	adrp	x19, _ehea_fw_handles@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ehea_fw_handles@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_4
; %bb.1:
	ldp	w1, w0, [x8]
Lloh2:
	adrp	x20, _FORCE_FREE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FORCE_FREE@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_ehea_h_free_resource
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	w22, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldp	w1, w0, [x8, #8]
	ldr	w2, [x20]
	bl	_ehea_h_free_resource
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
Lloh4:
	adrp	x19, _ehea_bcmc_regs@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ehea_bcmc_regs@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.ge	LBB0_6
LBB0_5:
	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_6:
	mov	x20, #0
	mov	w21, #1
Lloh6:
	adrp	x22, _H_DEREG_BCMC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _H_DEREG_BCMC@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldp	w1, w0, [x8, #8]
	ldp	w3, w2, [x8]
	ldr	w5, [x22]
	mov	w4, #0
	bl	_ehea_h_reg_dereg_bcmc
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	add	x20, x20, #16
	add	x21, x21, #1
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ehea_fw_handles,16,3           ; @ehea_fw_handles
	.comm	_FORCE_FREE,4,2                 ; @FORCE_FREE
	.comm	_ehea_bcmc_regs,16,3            ; @ehea_bcmc_regs
	.comm	_H_DEREG_BCMC,4,2               ; @H_DEREG_BCMC
	.no_dead_strip	_ehea_crash_handler
.subsections_via_symbols
