	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wsm_handle_exception           ## -- Begin function wsm_handle_exception
	.p2align	4, 0x90
_wsm_handle_exception:                  ## @wsm_handle_exception
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -192(%rbp)
	movq	%rsi, -200(%rbp)
	addq	%rsi, %rdx
	movq	%rdx, -184(%rbp)
	leaq	-200(%rbp), %rdi
	callq	_WSM_GET32
	movl	%eax, %r14d
	leaq	-128(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-200(%rbp), %r12
	leaq	-128(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_WSM_GET32
	movl	%eax, -128(%rbp,%rbx,4)
	incq	%rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	leaq	-200(%rbp), %rdi
	leaq	-176(%rbp), %rsi
	movl	$48, %edx
	callq	_WSM_GET
	movq	(%r15), %rax
	movl	(%rax), %edi
	cmpl	$3, %r14d
	jg	LBB0_5
## %bb.4:
	movslq	%r14d, %rax
	leaq	_reltable.wsm_handle_exception(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
	jmp	LBB0_6
LBB0_5:
	movl	-124(%rbp), %r8d
	leaq	L_.str.5(%rip), %rsi
	leaq	-176(%rbp), %rcx
	movl	$48, %edx
	xorl	%eax, %eax
	callq	_wiphy_err
LBB0_6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	-128(%rbp), %ecx
	movl	-124(%rbp), %r9d
	movl	-120(%rbp), %r10d
	movl	-116(%rbp), %ebx
	leaq	L_.str.6(%rip), %r14
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	$3
	pushq	%r10
	pushq	$2
	callq	_wiphy_err
	addq	$32, %rsp
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	-112(%rbp), %ecx
	movl	-108(%rbp), %r9d
	movl	-104(%rbp), %r10d
	movl	-100(%rbp), %ebx
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$5, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	$7
	pushq	%r10
	pushq	$6
	callq	_wiphy_err
	addq	$32, %rsp
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	-96(%rbp), %ecx
	movl	-92(%rbp), %r9d
	movl	-88(%rbp), %r10d
	movl	-84(%rbp), %ebx
	movq	%r14, %rsi
	movl	$8, %edx
	movl	$9, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	$11
	pushq	%r10
	pushq	$10
	callq	_wiphy_err
	addq	$32, %rsp
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %ecx
	movl	-72(%rbp), %r8d
	movl	-68(%rbp), %r9d
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wiphy_err
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	leaq	-176(%rbp), %rdx
	movl	$48, %ecx
	callq	_print_hex_dump_bytes
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.wsm_handle_exception
_reltable.wsm_handle_exception:
	.long	L_.str-_reltable.wsm_handle_exception
	.long	L_.str.1-_reltable.wsm_handle_exception
	.long	L_.str.2-_reltable.wsm_handle_exception
	.long	L_.str.3-_reltable.wsm_handle_exception

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"undefined instruction"

L_.str.1:                               ## @.str.1
	.asciz	"prefetch abort"

L_.str.2:                               ## @.str.2
	.asciz	"data abort"

L_.str.3:                               ## @.str.3
	.asciz	"unknown error"

L_.str.4:                               ## @.str.4
	.asciz	"Firmware exception: %s.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Firmware assert at %.*s, line %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"R%d: 0x%.8X, R%d: 0x%.8X, R%d: 0x%.8X, R%d: 0x%.8X,\n"

L_.str.7:                               ## @.str.7
	.asciz	"R12: 0x%.8X, SP: 0x%.8X, LR: 0x%.8X, PC: 0x%.8X,\n"

L_.str.8:                               ## @.str.8
	.asciz	"CPSR: 0x%.8X, SPSR: 0x%.8X\n"

L_.str.9:                               ## @.str.9
	.asciz	"R1: "

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wsm_handle_exception           ; -- Begin function wsm_handle_exception
	.p2align	2
_wsm_handle_exception:                  ; @wsm_handle_exception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stp	x1, x1, [sp, #72]
	add	x8, x1, x2
	str	x8, [sp, #88]
	add	x0, sp, #72
	bl	_WSM_GET32
	mov	x20, x0
	sub	x21, x29, #128
	sub	x0, x29, #128
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #72
	bl	_WSM_GET32
	str	w0, [x21, x22, lsl #2]
	add	x22, x22, #1
	sub	x0, x29, #128
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	add	x21, sp, #96
	add	x0, sp, #72
	add	x1, sp, #96
	mov	w2, #48
	bl	_WSM_GET
	ldr	x8, [x19]
	ldr	w0, [x8]
	cmp	w20, #3
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _wsm_handle_exception.reason_str@PAGE
Lloh4:
	add	x8, x8, _wsm_handle_exception.reason_str@PAGEOFF
	ldr	x8, [x8, w20, sxtw #3]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldur	w8, [x29, #-124]
	stp	x21, x8, [sp, #8]
	mov	w8, #48
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_6:
	bl	_wiphy_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	w8, w9, [x29, #-128]
	ldp	w10, w11, [x29, #-120]
	mov	w12, #3
	stp	x12, x11, [sp, #48]
	mov	w11, #2
	stp	x11, x10, [sp, #32]
	mov	w10, #1
	stp	x10, x9, [sp, #16]
Lloh9:
	adrp	x20, l_.str.6@PAGE
Lloh10:
	add	x20, x20, l_.str.6@PAGEOFF
	stp	xzr, x8, [sp]
	mov	x1, x20
	bl	_wiphy_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	w8, w9, [x29, #-112]
	ldp	w10, w11, [x29, #-104]
	mov	w12, #7
	stp	x12, x11, [sp, #48]
	mov	w11, #6
	stp	x11, x10, [sp, #32]
	mov	w10, #5
	stp	x10, x9, [sp, #16]
	mov	w9, #4
	stp	x9, x8, [sp]
	mov	x1, x20
	bl	_wiphy_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	w8, w9, [x29, #-96]
	ldp	w10, w11, [x29, #-88]
	mov	w12, #11
	stp	x12, x11, [sp, #48]
	mov	w11, #10
	stp	x11, x10, [sp, #32]
	mov	w10, #9
	stp	x10, x9, [sp, #16]
	mov	w9, #8
	stp	x9, x8, [sp]
	mov	x1, x20
	bl	_wiphy_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	w8, w9, [x29, #-80]
	ldp	w10, w11, [x29, #-72]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.7@PAGE
Lloh12:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wiphy_err
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	w8, w9, [x29, #-64]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x1, l_.str.8@PAGE
Lloh14:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wiphy_err
Lloh15:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x0, l_.str.9@PAGE
Lloh19:
	add	x0, x0, l_.str.9@PAGEOFF
	add	x2, sp, #96
	mov	w3, #48
	bl	_print_hex_dump_bytes
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @wsm_handle_exception.reason_str
_wsm_handle_exception.reason_str:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"undefined instruction"

l_.str.1:                               ; @.str.1
	.asciz	"prefetch abort"

l_.str.2:                               ; @.str.2
	.asciz	"data abort"

l_.str.3:                               ; @.str.3
	.asciz	"unknown error"

l_.str.4:                               ; @.str.4
	.asciz	"Firmware exception: %s.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Firmware assert at %.*s, line %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"R%d: 0x%.8X, R%d: 0x%.8X, R%d: 0x%.8X, R%d: 0x%.8X,\n"

l_.str.7:                               ; @.str.7
	.asciz	"R12: 0x%.8X, SP: 0x%.8X, LR: 0x%.8X, PC: 0x%.8X,\n"

l_.str.8:                               ; @.str.8
	.asciz	"CPSR: 0x%.8X, SPSR: 0x%.8X\n"

l_.str.9:                               ; @.str.9
	.asciz	"R1: "

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
