	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_init_avb_params
_sja1105_init_avb_params:               ## @sja1105_init_avb_params
	.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
	movl	%esi, %r15d
	movq	(%rdi), %r13
	movq	_BLK_IDX_AVB_PARAMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(,%rbx,8), %r12
	addq	%r13, %r12
	cmpq	$0, 8(%r13,%rbx,8)
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
LBB0_2:
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	movq	_SJA1105_MAX_AVB_PARAMS_COUNT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	16(%r13,%rbx,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%r15), %rcx
	movq	%rcx, 8(%r12)
	movq	_SJA1105_META_DMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SJA1105_META_SMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_AVB_PARAMS,8,3         ## @BLK_IDX_AVB_PARAMS
	.comm	_SJA1105_MAX_AVB_PARAMS_COUNT,8,3 ## @SJA1105_MAX_AVB_PARAMS_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SJA1105_META_DMAC,4,2          ## @SJA1105_META_DMAC
	.comm	_SJA1105_META_SMAC,4,2          ## @SJA1105_META_SMAC
	.no_dead_strip	_sja1105_init_avb_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_init_avb_params
_sja1105_init_avb_params:               ; @sja1105_init_avb_params
	.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
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _BLK_IDX_AVB_PARAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_IDX_AVB_PARAMS@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	w8, #24
	madd	x21, x23, x8, x22
	mov	x20, x21
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	bl	_kfree
	str	xzr, [x20]
LBB0_2:
	cbz	w19, LBB0_5
; %bb.3:
Lloh3:
	adrp	x19, _SJA1105_MAX_AVB_PARAMS_COUNT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SJA1105_MAX_AVB_PARAMS_COUNT@GOTPAGEOFF]
	ldr	x0, [x19]
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x9, [x20]
Lloh8:
	adrp	x9, _SJA1105_META_DMAC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SJA1105_META_DMAC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SJA1105_META_SMAC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SJA1105_META_SMAC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_AVB_PARAMS,8,3         ; @BLK_IDX_AVB_PARAMS
	.comm	_SJA1105_MAX_AVB_PARAMS_COUNT,8,3 ; @SJA1105_MAX_AVB_PARAMS_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SJA1105_META_DMAC,4,2          ; @SJA1105_META_DMAC
	.comm	_SJA1105_META_SMAC,4,2          ; @SJA1105_META_SMAC
	.no_dead_strip	_sja1105_init_avb_params
.subsections_via_symbols
