	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pci_dump_marbh_monitor
_iwl_trans_pci_dump_marbh_monitor:      ## @iwl_trans_pci_dump_marbh_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r13
	movq	(%rsi), %r15
	leaq	-56(%rbp), %rsi
	callq	_iwl_trans_grab_nic_access
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MON_DMARB_RD_CTL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ebx
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_iwl_write_umac_prph_no_grab
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	$4, %r14d
	jl	LBB0_5
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	sarl	$2, %eax
	cmpl	$2, %eax
	cmovgel	%eax, %ebx
	xorl	%r12d, %r12d
	movq	_MON_DMARB_RD_DATA_ADDR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_iwl_read_umac_prph_no_grab
	movl	%eax, (%r15,%r12,4)
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_5:
	movq	_MON_DMARB_RD_CTL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_iwl_write_umac_prph_no_grab
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_iwl_trans_release_nic_access
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MON_DMARB_RD_CTL_ADDR,4,2      ## @MON_DMARB_RD_CTL_ADDR
	.comm	_MON_DMARB_RD_DATA_ADDR,4,2     ## @MON_DMARB_RD_DATA_ADDR
	.no_dead_strip	_iwl_trans_pci_dump_marbh_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_pci_dump_marbh_monitor
_iwl_trans_pci_dump_marbh_monitor:      ; @iwl_trans_pci_dump_marbh_monitor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x0
	ldr	x21, [x1]
	add	x1, sp, #8
	bl	_iwl_trans_grab_nic_access
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _MON_DMARB_RD_CTL_ADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MON_DMARB_RD_CTL_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_iwl_write_umac_prph_no_grab
	cmp	w19, #4
	b.lt	LBB0_4
; %bb.2:
	asr	w8, w19, #2
	cmp	w8, #1
	csinc	w23, w8, wzr, gt
Lloh2:
	adrp	x24, _MON_DMARB_RD_DATA_ADDR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MON_DMARB_RD_DATA_ADDR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_iwl_read_umac_prph_no_grab
	str	w0, [x21], #4
	subs	x23, x23, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_iwl_write_umac_prph_no_grab
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_trans_release_nic_access
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MON_DMARB_RD_CTL_ADDR,4,2      ; @MON_DMARB_RD_CTL_ADDR
	.comm	_MON_DMARB_RD_DATA_ADDR,4,2     ; @MON_DMARB_RD_DATA_ADDR
	.no_dead_strip	_iwl_trans_pci_dump_marbh_monitor
.subsections_via_symbols
