	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_dump_monitor
_iwl_trans_pcie_dump_monitor:           ## @iwl_trans_pcie_dump_monitor
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_4:
	movq	_IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r14), %rax
	movq	8(%rax), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_iwl_trans_pcie_dump_pointers
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.2:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_7000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_IWL_DEVICE_FAMILY_AX210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_14
	jmp	LBB0_4
LBB0_6:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_SMEM_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movq	(%rbx), %rcx
	movq	16(%rcx), %r13
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iwl_read_prph
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movq	_IWL_LDBG_M2S_BUF_BA_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	(%rbx), %rcx
	movq	24(%rbx), %rdx
	movb	8(%rcx), %cl
	shll	%cl, %eax
	movq	_IWL_M2S_UNIT_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	(%rdx), %eax
	jmp	LBB0_10
LBB0_11:
	movq	_MARBH_MODE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_iwl_trans_pci_dump_marbh_monitor
	movl	%eax, %edi
	jmp	LBB0_13
LBB0_9:
	movq	(%rbx), %rcx
	movb	8(%rcx), %cl
	shll	%cl, %eax
LBB0_10:
	movl	(%r12), %edx
	movl	%r15d, %ecx
	sarl	$2, %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iwl_trans_read_mem
	movl	%r15d, %edi
LBB0_13:
	leal	32(%rdi), %r12d
	addl	$8, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_DEVICE_FAMILY_7000,8,3     ## @IWL_DEVICE_FAMILY_7000
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ## @IWL_DEVICE_FAMILY_AX210
	.comm	_IWL_FW_ERROR_DUMP_FW_MONITOR,4,2 ## @IWL_FW_ERROR_DUMP_FW_MONITOR
	.comm	_SMEM_MODE,8,3                  ## @SMEM_MODE
	.comm	_IWL_LDBG_M2S_BUF_BA_MSK,4,2    ## @IWL_LDBG_M2S_BUF_BA_MSK
	.comm	_IWL_M2S_UNIT_SIZE,4,2          ## @IWL_M2S_UNIT_SIZE
	.comm	_MARBH_MODE,8,3                 ## @MARBH_MODE
	.no_dead_strip	_iwl_trans_pcie_dump_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_pcie_dump_monitor
_iwl_trans_pcie_dump_monitor:           ; @iwl_trans_pcie_dump_monitor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x8, [x19]
	ldr	x22, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_iwl_trans_pcie_dump_pointers
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w0, [x22]
	ldr	x8, [x21, #8]
	ldp	w2, w1, [x8]
	bl	_memcpy
	ldr	x8, [x21, #8]
	ldr	w20, [x8]
	b	LBB0_14
LBB0_3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IWL_DEVICE_FAMILY_7000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_7000@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IWL_DEVICE_FAMILY_AX210@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IWL_DEVICE_FAMILY_AX210@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ne
	b.ge	LBB0_1
LBB0_5:
	mov	w21, #0
	b	LBB0_15
LBB0_6:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SMEM_MODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMEM_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x23, [x8, #16]
	mov	x0, x21
	bl	_iwl_read_prph
	cbz	x23, LBB0_12
; %bb.8:
Lloh12:
	adrp	x8, _IWL_LDBG_M2S_BUF_BA_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_LDBG_M2S_BUF_BA_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	x9, [x21]
	ldr	w9, [x9, #8]
	lsl	w8, w8, w9
Lloh15:
	adrp	x9, _IWL_M2S_UNIT_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IWL_M2S_UNIT_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	x10, [x21, #24]
	ldr	w10, [x10]
	madd	w1, w8, w9, w10
	b	LBB0_13
LBB0_9:
Lloh18:
	adrp	x9, _MARBH_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MARBH_MODE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_iwl_trans_pci_dump_marbh_monitor
	mov	x20, x0
	b	LBB0_14
LBB0_11:
	mov	w20, #0
	b	LBB0_14
LBB0_12:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	lsl	w1, w0, w8
LBB0_13:
	ldr	w2, [x22]
	asr	w3, w20, #2
	mov	x0, x21
	bl	_iwl_trans_read_mem
LBB0_14:
	add	w21, w20, #32
	add	w0, w20, #8
	bl	_cpu_to_le32
	ldr	x8, [x19]
	str	x0, [x8]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DEVICE_FAMILY_7000,8,3     ; @IWL_DEVICE_FAMILY_7000
	.comm	_IWL_DEVICE_FAMILY_AX210,8,3    ; @IWL_DEVICE_FAMILY_AX210
	.comm	_IWL_FW_ERROR_DUMP_FW_MONITOR,4,2 ; @IWL_FW_ERROR_DUMP_FW_MONITOR
	.comm	_SMEM_MODE,8,3                  ; @SMEM_MODE
	.comm	_IWL_LDBG_M2S_BUF_BA_MSK,4,2    ; @IWL_LDBG_M2S_BUF_BA_MSK
	.comm	_IWL_M2S_UNIT_SIZE,4,2          ; @IWL_M2S_UNIT_SIZE
	.comm	_MARBH_MODE,8,3                 ; @MARBH_MODE
	.no_dead_strip	_iwl_trans_pcie_dump_monitor
.subsections_via_symbols
