	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_getfamily
_ctrl_getfamily:                        ## @ctrl_getfamily
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movq	_CTRL_ATTR_FAMILY_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_nla_get_u16
	movl	%eax, %edi
	callq	_genl_family_find_byid
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
LBB0_3:
	movq	_CTRL_ATTR_FAMILY_NAME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_nla_data
	movq	%rax, %rdi
	callq	_genl_family_find_byname
	movq	%rax, %rbx
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	_genl_info_net
	movq	_init_net@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_net_eq
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_CTRL_CMD_NEWFAMILY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ctrl_build_family_msg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_genlmsg_reply                  ## TAILCALL
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CTRL_ATTR_FAMILY_ID,8,3        ## @CTRL_ATTR_FAMILY_ID
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_CTRL_ATTR_FAMILY_NAME,8,3      ## @CTRL_ATTR_FAMILY_NAME
	.comm	_init_net,4,2                   ## @init_net
	.comm	_CTRL_CMD_NEWFAMILY,4,2         ## @CTRL_CMD_NEWFAMILY
	.no_dead_strip	_ctrl_getfamily
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_getfamily
_ctrl_getfamily:                        ; @ctrl_getfamily
	.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
	mov	x19, x1
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x8, _CTRL_ATTR_FAMILY_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_ATTR_FAMILY_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x9, x8, lsl #3]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_nla_get_u16
	bl	_genl_family_find_byid
	mov	x20, x0
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
Lloh7:
	adrp	x10, _CTRL_ATTR_FAMILY_NAME@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CTRL_ATTR_FAMILY_NAME@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	x0, [x9, x10, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_nla_data
	bl	_genl_family_find_byname
	mov	x20, x0
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	cbz	x20, LBB0_12
; %bb.6:
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_genl_info_net
Lloh12:
	adrp	x1, _init_net@GOTPAGE
Lloh13:
	ldr	x1, [x1, _init_net@GOTPAGEOFF]
	bl	_net_eq
	cbz	w0, LBB0_11
LBB0_8:
	ldp	w2, w1, [x19]
Lloh14:
	adrp	x8, _CTRL_CMD_NEWFAMILY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CTRL_CMD_NEWFAMILY@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ctrl_build_family_msg
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genlmsg_reply
LBB0_11:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CTRL_ATTR_FAMILY_ID,8,3        ; @CTRL_ATTR_FAMILY_ID
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_CTRL_ATTR_FAMILY_NAME,8,3      ; @CTRL_ATTR_FAMILY_NAME
	.comm	_init_net,4,2                   ; @init_net
	.comm	_CTRL_CMD_NEWFAMILY,4,2         ; @CTRL_CMD_NEWFAMILY
	.no_dead_strip	_ctrl_getfamily
.subsections_via_symbols
