	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bpf_buffer_ioctl_sblen         ## -- Begin function bpf_buffer_ioctl_sblen
	.p2align	4, 0x90
_bpf_buffer_ioctl_sblen:                ## @bpf_buffer_ioctl_sblen
	.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	%rdi, %rbx
	movq	(%rsi), %r14
	movq	_bpf_maxbufsize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jg	LBB0_2
## %bb.1:
	movq	_BPF_MINBUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_3
LBB0_2:
	movq	%rax, (%rsi)
	movq	%rax, %r14
LBB0_3:
	movq	_M_BPF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, %r15
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_BPFD_LOCK
	cmpq	$0, 48(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_BPFD_UNLOCK
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_free
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_5:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movl	(%r13), %esi
	callq	_free
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movl	(%r13), %esi
	callq	_free
LBB0_9:
	movq	%r14, 40(%rbx)
	movq	%r15, (%rbx)
	movq	%r12, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_BPFD_UNLOCK
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bpf_maxbufsize,8,3             ## @bpf_maxbufsize
	.comm	_BPF_MINBUFSIZE,8,3             ## @BPF_MINBUFSIZE
	.comm	_M_BPF,4,2                      ## @M_BPF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bpf_buffer_ioctl_sblen         ; -- Begin function bpf_buffer_ioctl_sblen
	.p2align	2
_bpf_buffer_ioctl_sblen:                ; @bpf_buffer_ioctl_sblen
	.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, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _bpf_maxbufsize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bpf_maxbufsize@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BPF_MINBUFSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BPF_MINBUFSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_3
LBB0_2:
	str	x8, [x1]
	mov	x20, x8
LBB0_3:
Lloh6:
	adrp	x23, _M_BPF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _M_BPF@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x22, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _M_WAITOK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_malloc
	mov	x22, x0
	mov	x0, x19
	bl	_BPFD_LOCK
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_BPFD_UNLOCK
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
	ldr	w1, [x23]
	mov	x0, x22
	bl	_free
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x23]
	bl	_free
LBB0_7:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x23]
	bl	_free
LBB0_9:
	stp	x21, x22, [x19]
	stp	xzr, x20, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	mov	x0, x19
	bl	_BPFD_UNLOCK
	mov	w0, #0
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_bpf_maxbufsize,8,3             ; @bpf_maxbufsize
	.comm	_BPF_MINBUFSIZE,8,3             ; @BPF_MINBUFSIZE
	.comm	_M_BPF,4,2                      ; @M_BPF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
