	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_attach_malloc
_brcms_c_attach_malloc:                 ## @brcms_c_attach_malloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, (%rax)
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, 8(%rax)
	movq	_MAXBANDS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	56(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	56(%rbx), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:
	movl	(%r13), %r8d
	cmpl	$2, %r8d
	jl	LBB0_16
## %bb.9:
	addq	$4, %rdx
	movq	%rdx, 8(%rcx)
	cmpl	$2, %r8d
	je	LBB0_16
## %bb.10:
	movl	$2, %ecx
	cmpl	$3, %r8d
	je	LBB0_14
## %bb.11:
	leaq	-2(%r8), %rdx
	andq	$-2, %rdx
	movl	$12, %esi
	movq	$-2, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rdi
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	addq	%rsi, %rax
	addq	$-4, %rax
	movq	%rax, -8(%rdi,%rsi,2)
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	%rdi, (%rax,%rsi,2)
	addq	$8, %rsi
	leaq	(%rdx,%rcx), %rax
	addq	$-2, %rax
	addq	$-2, %rcx
	cmpq	$-2, %rax
	jne	LBB0_12
## %bb.13:
	negq	%rcx
LBB0_14:
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	leaq	(,%rcx,4), %rdx
	addq	(%rax), %rdx
	movq	%rdx, (%rax,%rcx,8)
LBB0_16:
	movq	_BRCMS_MAXMODULES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	%r15d, %edi
	callq	_brcms_c_bsscfg_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movl	(%r13), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.28:
	movl	(%r13), %r8d
	cmpl	$2, %r8d
	jl	LBB0_36
## %bb.29:
	addq	$4, %rdx
	movq	%rdx, 8(%rcx)
	cmpl	$2, %r8d
	je	LBB0_36
## %bb.30:
	movl	$2, %ecx
	cmpl	$3, %r8d
	je	LBB0_34
## %bb.31:
	leaq	-2(%r8), %rdx
	andq	$-2, %rdx
	movl	$12, %esi
	movq	$-2, %rcx
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	addq	%rsi, %rax
	addq	$-4, %rax
	movq	%rax, -8(%rdi,%rsi,2)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	%rdi, (%rax,%rsi,2)
	addq	$8, %rsi
	leaq	(%rdx,%rcx), %rax
	addq	$-2, %rax
	addq	$-2, %rcx
	cmpq	$-2, %rax
	jne	LBB0_32
## %bb.33:
	negq	%rcx
LBB0_34:
	testb	$1, %r8b
	je	LBB0_36
## %bb.35:
	movq	8(%rbx), %rax
	leaq	(,%rcx,4), %rdx
	addq	(%rax), %rdx
	movq	%rdx, (%rax,%rcx,8)
LBB0_36:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_37
## %bb.38:
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_41
## %bb.39:
	movl	$1027, %eax                     ## imm = 0x403
	jmp	LBB0_40
LBB0_1:
	movl	$1002, %eax                     ## imm = 0x3EA
	jmp	LBB0_40
LBB0_3:
	movl	$1003, %eax                     ## imm = 0x3EB
	jmp	LBB0_40
LBB0_5:
	movl	$1005, %eax                     ## imm = 0x3ED
	jmp	LBB0_40
LBB0_7:
	movl	$1006, %eax                     ## imm = 0x3EE
	jmp	LBB0_40
LBB0_17:
	movl	$1009, %eax                     ## imm = 0x3F1
	jmp	LBB0_40
LBB0_19:
	movl	$1010, %eax                     ## imm = 0x3F2
	jmp	LBB0_40
LBB0_21:
	movl	$1011, %eax                     ## imm = 0x3F3
	jmp	LBB0_40
LBB0_23:
	movl	$1016, %eax                     ## imm = 0x3F8
	jmp	LBB0_40
LBB0_25:
	movl	$1017, %eax                     ## imm = 0x3F9
	jmp	LBB0_40
LBB0_27:
	movl	$1025, %eax                     ## imm = 0x401
	jmp	LBB0_40
LBB0_37:
	movl	$1026, %eax                     ## imm = 0x402
LBB0_40:
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_brcms_c_detach_mfree
	xorl	%ebx, %ebx
LBB0_41:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MAXBANDS,4,2                   ## @MAXBANDS
	.comm	_BRCMS_MAXMODULES,4,2           ## @BRCMS_MAXMODULES
	.no_dead_strip	_brcms_c_attach_malloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_attach_malloc
_brcms_c_attach_malloc:                 ; @brcms_c_attach_malloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #72
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.1:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20, #64]
	cbz	x0, LBB0_22
; %bb.2:
	str	x20, [x0]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20, #56]
	cbz	x0, LBB0_23
; %bb.3:
	str	x20, [x0, #8]
Lloh2:
	adrp	x23, _MAXBANDS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAXBANDS@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	ldr	x8, [x20, #56]
	ldr	x8, [x8]
	str	x0, [x8]
	ldr	x8, [x20, #56]
	ldr	x9, [x8]
	ldr	x10, [x9]
	cbz	x10, LBB0_24
; %bb.4:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.5:
	add	x10, x10, #4
	str	x10, [x9, #8]
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.6:
	mov	w9, #2
	mov	w10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20, #56]
	ldr	x11, [x11]
	ldr	x12, [x11]
	add	x12, x10, x12
	str	x12, [x11, x9, lsl #3]
	add	x9, x9, #1
	add	x10, x10, #4
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_8:
Lloh4:
	adrp	x8, _BRCMS_MAXMODULES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMS_MAXMODULES@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_25
; %bb.9:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_26
; %bb.10:
	mov	x0, x21
	bl	_brcms_c_bsscfg_malloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_27
; %bb.11:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_28
; %bb.12:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_29
; %bb.13:
	ldr	w0, [x23]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	ldr	x8, [x20, #8]
	str	x0, [x8]
	ldr	x9, [x20, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_30
; %bb.14:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.15:
	add	x10, x10, #4
	str	x10, [x9, #8]
	cmp	w8, #2
	b.eq	LBB0_18
; %bb.16:
	mov	w9, #2
	mov	w10, #8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20, #8]
	ldr	x12, [x11]
	add	x12, x10, x12
	str	x12, [x11, x9, lsl #3]
	add	x9, x9, #1
	add	x10, x10, #4
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_18:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_31
; %bb.19:
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x20]
	str	x0, [x8]
	cbnz	x0, LBB0_33
; %bb.20:
	mov	w8, #1027
	b	LBB0_32
LBB0_21:
	mov	w8, #1002
	b	LBB0_32
LBB0_22:
	mov	w8, #1003
	b	LBB0_32
LBB0_23:
	mov	w8, #1005
	b	LBB0_32
LBB0_24:
	mov	w8, #1006
	b	LBB0_32
LBB0_25:
	mov	w8, #1009
	b	LBB0_32
LBB0_26:
	mov	w8, #1010
	b	LBB0_32
LBB0_27:
	mov	w8, #1011
	b	LBB0_32
LBB0_28:
	mov	w8, #1016
	b	LBB0_32
LBB0_29:
	mov	w8, #1017
	b	LBB0_32
LBB0_30:
	mov	w8, #1025
	b	LBB0_32
LBB0_31:
	mov	w8, #1026
LBB0_32:
	str	w8, [x19]
	mov	x0, x20
	bl	_brcms_c_detach_mfree
	mov	x20, #0
LBB0_33:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MAXBANDS,4,2                   ; @MAXBANDS
	.comm	_BRCMS_MAXMODULES,4,2           ; @BRCMS_MAXMODULES
	.no_dead_strip	_brcms_c_attach_malloc
.subsections_via_symbols
