	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_parse_shared_mem
_iwl_parse_shared_mem:                  ## @iwl_parse_shared_mem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movl	$1, (%rdi)
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r14)
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_le32_to_cpu
	movq	32(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	callq	_le32_to_cpu
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	callq	_le32_to_cpu
	movq	%rax, 24(%r14)
	movq	40(%r14), %rdi
	movq	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	movq	8(%r15), %rdi
	callq	_le32_to_cpu
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_le32_to_cpu
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ## @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.no_dead_strip	_iwl_parse_shared_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_parse_shared_mem
_iwl_parse_shared_mem:                  ; @iwl_parse_shared_mem
	.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, x0
	ldr	x20, [x1]
	mov	w8, #1
	str	w8, [x0]
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	str	w0, [x19, #4]
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_le32_to_cpu
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	str	x0, [x8, x22]
	add	x21, x21, #1
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [x19, #32]
	str	x0, [x8]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	bl	_le32_to_cpu
	str	x0, [x19, #24]
	ldr	x0, [x19, #40]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_7
; %bb.4:
	mov	w0, #0
	bl	_BUILD_BUG_ON
	ldr	x0, [x20, #8]
	bl	_le32_to_cpu
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_le32_to_cpu
	ldr	x8, [x19, #8]
	str	x0, [x8, x22]
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ; @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.no_dead_strip	_iwl_parse_shared_mem
.subsections_via_symbols
