	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genl_register_family           ## -- Begin function genl_register_family
	.p2align	4, 0x90
_genl_register_family:                  ## @genl_register_family
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%rdi), %rax
	testq	%rax, %rax
	setne	%cl
	movq	_GENL_MIN_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setl	%dl
	testb	%dl, %cl
	jne	LBB0_14
## %bb.1:
	movq	_GENL_MAX_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_14
## %bb.2:
	movq	%rdi, %r14
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%r14), %rdi
	callq	_INIT_LIST_HEAD
	xorl	%eax, %eax
	callq	_genl_lock
	movl	24(%r14), %edi
	callq	_genl_family_find_byname
	movq	_EEXIST@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	callq	_genl_family_find_byid
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_genl_unlock
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rdi
	movq	_GENL_ID_GENERATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_genl_generate_id
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rdi
	movq	%rax, (%r14)
LBB0_9:
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	leal	8(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	(%r14), %rdi
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_12:
	movq	$0, 16(%r14)
LBB0_13:
	leaq	12(%r14), %rbx
	callq	_genl_family_chain
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_list_add_tail
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_genl_unlock
	movq	_CTRL_CMD_NEWFAMILY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_genl_ctrl_event
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GENL_MIN_ID,8,3                ## @GENL_MIN_ID
	.comm	_GENL_MAX_ID,8,3                ## @GENL_MAX_ID
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_GENL_ID_GENERATE,8,3           ## @GENL_ID_GENERATE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CTRL_CMD_NEWFAMILY,4,2         ## @CTRL_CMD_NEWFAMILY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genl_register_family           ; -- Begin function genl_register_family
	.p2align	2
_genl_register_family:                  ; @genl_register_family
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GENL_MIN_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GENL_MIN_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, #0, #4, lt
Lloh3:
	adrp	x9, _GENL_MAX_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GENL_MAX_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, eq
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	add	x0, x0, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	bl	_genl_lock
	ldr	w0, [x19, #24]
	bl	_genl_family_find_byname
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_genl_family_find_byid
	cbz	x0, LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_genl_unlock
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _GENL_ID_GENERATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GENL_ID_GENERATE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	bl	_genl_generate_id
	cbz	x0, LBB0_13
; %bb.9:
	str	x0, [x19]
LBB0_10:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.11:
	lsl	w8, w8, #3
	add	w0, w8, #8
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x19]
	b	LBB0_15
LBB0_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	str	xzr, [x19, #16]
LBB0_15:
	add	x20, x19, #12
	bl	_genl_family_chain
	mov	x1, x0
	mov	x0, x20
	bl	_list_add_tail
	bl	_genl_unlock
Lloh19:
	adrp	x8, _CTRL_CMD_NEWFAMILY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CTRL_CMD_NEWFAMILY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_genl_ctrl_event
	mov	w19, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GENL_MIN_ID,8,3                ; @GENL_MIN_ID
	.comm	_GENL_MAX_ID,8,3                ; @GENL_MAX_ID
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_GENL_ID_GENERATE,8,3           ; @GENL_ID_GENERATE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CTRL_CMD_NEWFAMILY,4,2         ; @CTRL_CMD_NEWFAMILY
.subsections_via_symbols
