	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_attach_filter               ## -- Begin function sk_attach_filter
	.p2align	4, 0x90
_sk_attach_filter:                      ## @sk_attach_filter
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	shll	$2, %ebx
	leal	12(%rbx), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	%r12d, %esi
	callq	_sock_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	4(%rax), %edi
	movq	8(%r13), %rsi
	movl	%ebx, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_sock_kfree_s
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	(%r13), %esi
	movl	%esi, (%r15)
	movl	4(%r15), %edi
	callq	_sk_chk_filter
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sk_filter_uncharge
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock_bh
	movl	(%r14), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	xorl	%eax, %eax
	callq	_rcu_read_unlock_bh
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sk_filter_delayed_uncharge
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_attach_filter               ; -- Begin function sk_attach_filter
	.p2align	2
_sk_attach_filter:                      ; @sk_attach_filter
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x0]
	lsl	w23, w8, #2
	add	w22, w23, #12
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x22
	bl	_sock_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #4]
	ldr	x1, [x21, #8]
	mov	x2, x23
	bl	_copy_from_user
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_sock_kfree_s
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	add	x0, x20, #8
	mov	w1, #1
	bl	_atomic_set
	ldr	w1, [x21]
	str	w1, [x20]
	ldr	w0, [x20, #4]
	bl	_sk_chk_filter
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sk_filter_uncharge
	b	LBB0_7
LBB0_10:
	bl	_rcu_read_lock_bh
	ldr	w0, [x19]
	bl	_rcu_dereference
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_rcu_assign_pointer
	bl	_rcu_read_unlock_bh
	cbz	x21, LBB0_7
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_sk_filter_delayed_uncharge
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
