	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_init_priv_mem
_brcmf_init_priv_mem:                   ## @brcmf_init_priv_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_WL_EXTRA_BUF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%r14), %esi
	movl	$5, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	movl	$9, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_BRCMF_ESCAN_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_brcmf_deinit_priv_mem
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_WL_EXTRA_BUF_MAX,4,2           ## @WL_EXTRA_BUF_MAX
	.comm	_BRCMF_ESCAN_BUF_SIZE,4,2       ## @BRCMF_ESCAN_BUF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_brcmf_init_priv_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_init_priv_mem
_brcmf_init_priv_mem:                   ; @brcmf_init_priv_mem
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #1
	bl	_kzalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _WL_EXTRA_BUF_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WL_EXTRA_BUF_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [x20]
	mov	w0, #5
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x20]
	mov	w0, #9
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _BRCMF_ESCAN_BUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_ESCAN_BUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_brcmf_deinit_priv_mem
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_WL_EXTRA_BUF_MAX,4,2           ; @WL_EXTRA_BUF_MAX
	.comm	_BRCMF_ESCAN_BUF_SIZE,4,2       ; @BRCMF_ESCAN_BUF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_brcmf_init_priv_mem
.subsections_via_symbols
