	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcomp_init_state              ## -- Begin function ipcomp_init_state
	.p2align	4, 0x90
_ipcomp_init_state:                     ## @ipcomp_init_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_2
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	_ipcomp_resource_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_ipcomp_alloc_scratches
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_ipcomp_alloc_tfms
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_ipcomp_resource_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	8(%r14), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_xfrm_calg_get_byname
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movq	%r15, (%r14)
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_ipcomp_free_data
	movq	_ipcomp_resource_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ipcomp_resource_mutex,4,2      ## @ipcomp_resource_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcomp_init_state              ; -- Begin function ipcomp_init_state
	.p2align	2
_ipcomp_init_state:                     ; @ipcomp_init_state
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x20
	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
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.4:
	mov	x21, x0
Lloh9:
	adrp	x0, _ipcomp_resource_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _ipcomp_resource_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	bl	_ipcomp_alloc_scratches
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ipcomp_alloc_tfms
	str	w0, [x21, #4]
	cbz	w0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x0, _ipcomp_resource_mutex@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ipcomp_resource_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_xfrm_calg_get_byname
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	w20, #0
	ldr	w8, [x22]
	str	w8, [x21]
	str	x21, [x19]
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_ipcomp_free_data
Lloh13:
	adrp	x0, _ipcomp_resource_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ipcomp_resource_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x21
	bl	_kfree
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ipcomp_resource_mutex,4,2      ; @ipcomp_resource_mutex
.subsections_via_symbols
