	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_irq_ucode_debug
_handle_irq_ucode_debug:                ## @handle_irq_ucode_debug
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	je	LBB0_21
## %bb.1:
	movq	%rdi, %r12
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_DEBUGIRQ_REASON_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_b43_shm_read16
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_19
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	%r12, %rdi
	callq	_b43_handle_firmware_panic
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_b43dbg
	jmp	LBB0_20
LBB0_17:
	movq	_B43_DEBUG@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.18:
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_B43_MARKER_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_b43_shm_read16
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	_B43_MARKER_LINE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_b43_shm_read16
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_b43info
	jmp	LBB0_20
LBB0_4:
	movq	_B43_DEBUG@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.5:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_b43_shm_read16
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r14,%rbx,2)
	leaq	2(%rbx), %rax
	cmpq	$4094, %rbx                     ## imm = 0xFFE
	movq	%rax, %rbx
	jb	LBB0_7
## %bb.8:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43info
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %ecx
	movl	$2, %r8d
	movq	%r14, %r9
	pushq	$1
	pushq	$4096                           ## imm = 0x1000
	callq	_print_hex_dump
	addq	$16, %rsp
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_20
LBB0_9:
	movq	_B43_DEBUG@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.10:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43info
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_printk
	movl	$1, %r15d
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	$64, %ebx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_b43_shm_read16
	movl	%eax, %r13d
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_printk
	incl	%r15d
	cmpl	$6, %r15d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r15d, %r15d
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	_B43_DEBUGIRQ_REASON_REG@GOTPCREL(%rip), %r13
	jmp	LBB0_20
LBB0_22:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43dbg
LBB0_20:
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_B43_DEBUGIRQ_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_shm_write16                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_17
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_B43_SHM_SCRATCH,4,2            ## @B43_SHM_SCRATCH
	.comm	_B43_DEBUGIRQ_REASON_REG,4,2    ## @B43_DEBUGIRQ_REASON_REG
	.comm	_B43_DEBUG,4,2                  ## @B43_DEBUG
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHM-dump: Failed to allocate memory\n"

	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"Shared memory dump:\n"

	.comm	_KERN_INFO,8,3                  ## @KERN_INFO
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
L_.str.3:                               ## @.str.3
	.asciz	"Microcode register dump:\n"

L_.str.4:                               ## @.str.4
	.asciz	"r%02u: 0x%04X  "

L_.str.5:                               ## @.str.5
	.asciz	"\n"

	.comm	_B43_MARKER_ID_REG,4,2          ## @B43_MARKER_ID_REG
	.comm	_B43_MARKER_LINE_REG,4,2        ## @B43_MARKER_LINE_REG
L_.str.6:                               ## @.str.6
	.asciz	"The firmware just executed the MARKER(%u) at line number %u\n"

L_.str.7:                               ## @.str.7
	.asciz	"Debug-IRQ triggered for unknown reason: %u\n"

	.comm	_B43_DEBUGIRQ_ACK,4,2           ## @B43_DEBUGIRQ_ACK
	.no_dead_strip	_handle_irq_ucode_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_irq_ucode_debug
_handle_irq_ucode_debug:                ; @handle_irq_ucode_debug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x25, _B43_SHM_SCRATCH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _B43_SHM_SCRATCH@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x24, _B43_DEBUGIRQ_REASON_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _B43_DEBUGIRQ_REASON_REG@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_b43_shm_read16
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	bl	_b43_handle_firmware_panic
	b	LBB0_22
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	ldr	w8, [x19]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.7@PAGE
Lloh7:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x8
LBB0_6:
	bl	_b43dbg
	b	LBB0_22
LBB0_7:
Lloh8:
	adrp	x8, _B43_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.8:
	ldr	w1, [x25]
Lloh11:
	adrp	x8, _B43_MARKER_ID_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_MARKER_ID_REG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
	mov	x20, x0
	ldr	w1, [x25]
Lloh14:
	adrp	x8, _B43_MARKER_LINE_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_MARKER_LINE_REG@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x20, x0, [sp]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	bl	_b43info
	b	LBB0_22
LBB0_9:
Lloh19:
	adrp	x8, _B43_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.10:
Lloh22:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w0, #4096
	bl	_kmalloc
	cbz	x0, LBB0_23
; %bb.11:
	mov	x20, x0
	mov	x21, #-2
Lloh25:
	adrp	x22, _B43_SHM_SHARED@GOTPAGE
Lloh26:
	ldr	x22, [x22, _B43_SHM_SHARED@GOTPAGEOFF]
	mov	x23, x0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x21, x21, #2
	mov	x0, x19
	mov	x2, x21
	bl	_b43_shm_read16
	bl	_cpu_to_le16
	str	w0, [x23], #4
	cmp	x21, #4094
	b.lo	LBB0_12
; %bb.13:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43info
Lloh29:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
Lloh32:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #16
	mov	w4, #2
	mov	x5, x20
	mov	w6, #4096
	mov	w7, #1
	bl	_print_hex_dump
	mov	x0, x20
	bl	_kfree
	b	LBB0_22
LBB0_14:
Lloh37:
	adrp	x8, _B43_DEBUG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _B43_DEBUG@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.15:
	ldr	w0, [x19]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_b43info
	mov	w20, #0
	mov	w27, #0
Lloh42:
	adrp	x26, _KERN_INFO@GOTPAGE
Lloh43:
	ldr	x26, [x26, _KERN_INFO@GOTPAGEOFF]
Lloh44:
	adrp	x21, l_.str.4@PAGE
Lloh45:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh46:
	adrp	x22, l_.str.5@PAGE
Lloh47:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x26]
	bl	_printk
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	mov	x8, x20
	stp	x8, x23, [sp]
	mov	x0, x21
	bl	_printk
	mov	w27, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w20, w20, #1
	cmp	w20, #64
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_shm_read16
	mov	x23, x0
	cbz	w27, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	stp	x20, x23, [sp]
	mov	x0, x21
	bl	_printk
	add	w27, w27, #1
	cmp	w27, #6
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_printk
	mov	w27, #0
	b	LBB0_17
LBB0_21:
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
LBB0_22:
	ldr	w1, [x25]
Lloh50:
	adrp	x8, _B43_DEBUGIRQ_ACK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _B43_DEBUGIRQ_ACK@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh52:
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_b43_shm_write16
LBB0_23:
	ldr	w0, [x19]
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_B43_SHM_SCRATCH,4,2            ; @B43_SHM_SCRATCH
	.comm	_B43_DEBUGIRQ_REASON_REG,4,2    ; @B43_DEBUGIRQ_REASON_REG
	.comm	_B43_DEBUG,4,2                  ; @B43_DEBUG
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHM-dump: Failed to allocate memory\n"

	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"Shared memory dump:\n"

	.comm	_KERN_INFO,8,3                  ; @KERN_INFO
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
l_.str.3:                               ; @.str.3
	.asciz	"Microcode register dump:\n"

l_.str.4:                               ; @.str.4
	.asciz	"r%02u: 0x%04X  "

l_.str.5:                               ; @.str.5
	.asciz	"\n"

	.comm	_B43_MARKER_ID_REG,4,2          ; @B43_MARKER_ID_REG
	.comm	_B43_MARKER_LINE_REG,4,2        ; @B43_MARKER_LINE_REG
l_.str.6:                               ; @.str.6
	.asciz	"The firmware just executed the MARKER(%u) at line number %u\n"

l_.str.7:                               ; @.str.7
	.asciz	"Debug-IRQ triggered for unknown reason: %u\n"

	.comm	_B43_DEBUGIRQ_ACK,4,2           ; @B43_DEBUGIRQ_ACK
	.no_dead_strip	_handle_irq_ucode_debug
.subsections_via_symbols
