	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_get_shared_mem_conf        ## -- Begin function iwl_get_shared_mem_conf
	.p2align	4, 0x90
_iwl_get_shared_mem_conf:               ## @iwl_get_shared_mem_conf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movl	$0, -16(%rbp)
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movq	8(%rdi), %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_2
## %bb.1:
	movq	_SHARED_MEM_CFG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SYSTEM_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_iwl_cmd_id
	jmp	LBB0_3
LBB0_2:
	movq	_SHARED_MEM_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, -24(%rbp)
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	callq	_iwl_trans_send_cmd
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_ERFKILL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	setne	%dil
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_WARN
	jmp	LBB0_9
LBB0_5:
	movq	-32(%rbp), %rsi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_22000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_iwl_parse_shared_mem
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_iwl_parse_shared_mem_22000
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_INFO
	leaq	-32(%rbp), %rdi
	callq	_iwl_free_resp
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ## @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.comm	_SHARED_MEM_CFG_CMD,4,2         ## @SHARED_MEM_CFG_CMD
	.comm	_SYSTEM_GROUP,4,2               ## @SYSTEM_GROUP
	.comm	_SHARED_MEM_CFG,4,2             ## @SHARED_MEM_CFG
	.comm	_ERFKILL,4,2                    ## @ERFKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not send the SMEM command: %d\n"

	.comm	_IWL_DEVICE_FAMILY_22000,8,3    ## @IWL_DEVICE_FAMILY_22000
L_.str.1:                               ## @.str.1
	.asciz	"SHARED MEM CFG: got memory offsets/sizes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_get_shared_mem_conf        ; -- Begin function iwl_get_shared_mem_conf
	.p2align	2
_iwl_get_shared_mem_conf:               ; @iwl_get_shared_mem_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
Lloh0:
	adrp	x8, _CMD_WANT_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SHARED_MEM_CFG_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHARED_MEM_CFG_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SYSTEM_GROUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYSTEM_GROUP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_iwl_cmd_id
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _SHARED_MEM_CFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SHARED_MEM_CFG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_3:
	str	w0, [sp, #16]
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_iwl_trans_send_cmd
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh15:
	adrp	x8, _ERFKILL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERFKILL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, ne
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_9
LBB0_5:
	ldr	x1, [sp, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _IWL_DEVICE_FAMILY_22000@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_22000@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
	bl	_iwl_parse_shared_mem
	b	LBB0_8
LBB0_7:
	bl	_iwl_parse_shared_mem_22000
LBB0_8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	add	x0, sp, #8
	bl	_iwl_free_resp
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG,4,2 ; @IWL_UCODE_TLV_CAPA_EXTEND_SHARED_MEM_CFG
	.comm	_SHARED_MEM_CFG_CMD,4,2         ; @SHARED_MEM_CFG_CMD
	.comm	_SYSTEM_GROUP,4,2               ; @SYSTEM_GROUP
	.comm	_SHARED_MEM_CFG,4,2             ; @SHARED_MEM_CFG
	.comm	_ERFKILL,4,2                    ; @ERFKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not send the SMEM command: %d\n"

	.comm	_IWL_DEVICE_FAMILY_22000,8,3    ; @IWL_DEVICE_FAMILY_22000
l_.str.1:                               ; @.str.1
	.asciz	"SHARED MEM CFG: got memory offsets/sizes\n"

.subsections_via_symbols
