	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_kmalloc                   ## -- Begin function sock_kmalloc
	.p2align	4, 0x90
_sock_kmalloc:                          ## @sock_kmalloc
	.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	_sysctl_optmem_max@GOTPCREL(%rip), %r12
	cmpl	%esi, (%r12)
	jb	LBB0_4
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_atomic_read
	addl	%ebx, %eax
	cmpl	(%r12), %eax
	jae	LBB0_4
## %bb.2:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_atomic_add
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_kmalloc
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_atomic_sub
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sysctl_optmem_max,4,2          ## @sysctl_optmem_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_kmalloc                   ; -- Begin function sock_kmalloc
	.p2align	2
_sock_kmalloc:                          ; @sock_kmalloc
	.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	x22, _sysctl_optmem_max@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sysctl_optmem_max@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	b.lo	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_atomic_read
	ldr	w8, [x22]
	add	w9, w0, w20
	cmp	w9, w8
	b.hs	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_atomic_add
	mov	x0, x20
	mov	x1, x21
	bl	_kmalloc
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_atomic_sub
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sysctl_optmem_max,4,2          ; @sysctl_optmem_max
.subsections_via_symbols
