	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genl_rcv_msg
_genl_rcv_msg:                          ## @genl_rcv_msg
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_nlmsg_data
	movq	%rax, %r13
	movl	16(%r12), %edi
	callq	_genl_family_find_byid
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	cmpl	$0, 20(%rax)
	jne	LBB0_5
## %bb.4:
	movq	_init_net@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_net_eq
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_GENL_HDRLEN@GOTPCREL(%rip), %rax
	movl	(%r14), %r13d
	addl	(%rax), %r13d
	movq	(%r12), %r15
	movl	%r13d, %edi
	callq	_nlmsg_msg_size
	cmpq	%rax, %r15
	jge	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_genl_get_cmd
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	_GENL_ADMIN_PERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.10:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_security_netlink_recv
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_NLM_F_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_15
## %bb.13:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.14:
	xorl	%eax, %eax
	callq	_genl_unlock
	movl	20(%r15), %eax
	movl	%eax, -104(%rbp)
	movq	24(%r15), %rax
	movq	%rax, -96(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-104(%rbp), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_netlink_dump_start
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_genl_lock
	jmp	LBB0_20
LBB0_15:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.16:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movl	16(%r14), %ecx
	movl	16(%r15), %r8d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nlmsg_parse
	testl	%eax, %eax
	js	LBB0_19
LBB0_18:
	movl	12(%r12), %eax
	movl	%eax, -68(%rbp)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_NETLINK_CB
	movl	%eax, -72(%rbp)
	movq	%r12, -80(%rbp)
	movq	%r12, %rdi
	callq	_nlmsg_data
	movq	%rax, -88(%rbp)
	movq	%r12, %rdi
	callq	_nlmsg_data
	movq	_GENL_HDRLEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, -96(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -104(%rbp)
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_genl_info_net_set
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
LBB0_19:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_init_net,4,2                   ## @init_net
	.comm	_GENL_HDRLEN,4,2                ## @GENL_HDRLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GENL_ADMIN_PERM,4,2            ## @GENL_ADMIN_PERM
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_NLM_F_DUMP,4,2                 ## @NLM_F_DUMP
	.no_dead_strip	_genl_rcv_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genl_rcv_msg
_genl_rcv_msg:                          ; @genl_rcv_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_sock_net
	mov	x21, x0
	mov	x0, x20
	bl	_nlmsg_data
	mov	x23, x0
	ldr	w0, [x20, #16]
	bl	_genl_family_find_byid
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0, #20]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, _init_net@GOTPAGE
Lloh1:
	ldr	x1, [x1, _init_net@GOTPAGEOFF]
	mov	x0, x21
	bl	_net_eq
	cbz	w0, LBB0_5
LBB0_3:
Lloh2:
	adrp	x25, _GENL_HDRLEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GENL_HDRLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x22]
	add	w24, w9, w8
	ldr	x26, [x20]
	mov	x0, x24
	bl	_nlmsg_msg_size
	cmp	x26, x0
	b.ge	LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_5:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_6:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_genl_get_cmd
	cbz	x0, LBB0_18
; %bb.7:
	mov	x23, x0
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _GENL_ADMIN_PERM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GENL_ADMIN_PERM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_security_netlink_recv
	cbz	x0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_19
LBB0_10:
	ldr	w8, [x20, #8]
Lloh16:
	adrp	x9, _NLM_F_DUMP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NLM_F_DUMP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_18
; %bb.12:
	bl	_genl_unlock
	ldr	w8, [x23, #20]
	str	w8, [sp, #8]
	ldr	x8, [x23, #24]
	str	x8, [sp, #16]
	ldr	w0, [x21]
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_netlink_dump_start
	mov	x24, x0
	bl	_genl_lock
	b	LBB0_20
LBB0_13:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	x2, [x22, #8]
	cbz	x2, LBB0_16
; %bb.15:
	ldr	w3, [x22, #16]
	ldr	w4, [x23, #16]
	mov	x0, x20
	mov	x1, x24
	bl	_nlmsg_parse
	tbnz	w0, #31, LBB0_17
LBB0_16:
	ldr	w8, [x20, #12]
	str	w8, [sp, #44]
	mov	x0, x19
	bl	_NETLINK_CB
	str	w0, [sp, #40]
	str	x20, [sp, #32]
	mov	x0, x20
	bl	_nlmsg_data
	str	x0, [sp, #24]
	mov	x0, x20
	bl	_nlmsg_data
	ldrsw	x8, [x25]
	add	x8, x0, x8
	str	x8, [sp, #16]
	ldr	x8, [x22, #8]
	str	x8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_genl_info_net_set
	ldr	x8, [x23, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
LBB0_17:
	mov	x24, x0
	b	LBB0_20
LBB0_18:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_init_net,4,2                   ; @init_net
	.comm	_GENL_HDRLEN,4,2                ; @GENL_HDRLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GENL_ADMIN_PERM,4,2            ; @GENL_ADMIN_PERM
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_NLM_F_DUMP,4,2                 ; @NLM_F_DUMP
	.no_dead_strip	_genl_rcv_msg
.subsections_via_symbols
