	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_get_fw_monitor_len
_iwl_trans_get_fw_monitor_len:          ## @iwl_trans_get_fw_monitor_len
	.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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	(%r14), %edx
	addl	%edx, %ecx
	addl	$8, %ecx
	movl	%ecx, (%r14)
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %r12d
	movl	28(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	cmpl	$1, %r12d
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_iwl_read_prph
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rcx
	movq	_IWL_LDBG_M2S_BUF_SIZE_MSK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movb	8(%rcx), %cl
	sarl	%cl, %eax
	movq	_IWL_M2S_UNIT_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	(%rbx), %rax
	movl	24(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_iwl_read_prph
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movb	4(%rax), %cl
	shll	%cl, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_iwl_read_prph
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rdx
	movq	24(%rbx), %rsi
	movl	8(%rdx), %ecx
	movq	(%rsi), %rsi
	movq	_IWL_DEVICE_FAMILY_8000@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jge	LBB0_8
## %bb.7:
	movq	16(%rdx), %rdx
	movq	_MARBH_MODE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_9
LBB0_8:
	incl	%eax
LBB0_9:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	subl	%r15d, %eax
LBB0_10:
	movl	(%r14), %ecx
	addl	%eax, %ecx
	addl	$8, %ecx
	movl	%ecx, (%r14)
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_IWL_LDBG_M2S_BUF_SIZE_MSK,4,2  ## @IWL_LDBG_M2S_BUF_SIZE_MSK
	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ## @IWL_DEVICE_FAMILY_8000
	.comm	_MARBH_MODE,8,3                 ## @MARBH_MODE
	.no_dead_strip	_iwl_trans_get_fw_monitor_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_get_fw_monitor_len
_iwl_trans_get_fw_monitor_len:          ; @iwl_trans_get_fw_monitor_len
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	ldr	w10, [x19]
	add	w9, w9, w10
	add	w9, w9, #8
	str	w9, [x19]
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w22, [x8]
	ldr	w0, [x8, #28]
	bl	_le32_to_cpu
	mov	x21, x0
	cmp	w22, #1
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_read_prph
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IWL_M2S_UNIT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_M2S_UNIT_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IWL_LDBG_M2S_BUF_SIZE_MSK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IWL_LDBG_M2S_BUF_SIZE_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w0
	ldr	w8, [x8, #8]
	asr	w8, w10, w8
	mul	w0, w8, w9
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20]
	ldr	w0, [x8, #24]
	bl	_le32_to_cpu
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_read_prph
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	lsl	w21, w0, w8
	mov	x0, x20
	mov	x1, x22
	bl	_iwl_read_prph
	ldr	x9, [x20]
	ldr	w8, [x9, #8]
	ldr	x10, [x20, #24]
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _IWL_DEVICE_FAMILY_8000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IWL_DEVICE_FAMILY_8000@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x9, #16]
Lloh9:
	adrp	x10, _MARBH_MODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MARBH_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_8:
	add	w0, w0, #1
LBB0_9:
	lsl	w8, w0, w8
	sub	w0, w8, w21
LBB0_10:
	ldr	w8, [x19]
	add	w8, w0, w8
	add	w8, w8, #8
	str	w8, [x19]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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	_IWL_LDBG_M2S_BUF_SIZE_MSK,4,2  ; @IWL_LDBG_M2S_BUF_SIZE_MSK
	.comm	_IWL_DEVICE_FAMILY_8000,8,3     ; @IWL_DEVICE_FAMILY_8000
	.comm	_MARBH_MODE,8,3                 ; @MARBH_MODE
	.no_dead_strip	_iwl_trans_get_fw_monitor_len
.subsections_via_symbols
