	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_nl80211_protocol_features
_get_nl80211_protocol_features:         ## @get_nl80211_protocol_features
	.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	%rdi, %r14
	movl	$0, -28(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_nlmsg_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_NL80211_CMD_GET_PROTOCOL_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_nl80211_cmd
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_protocol_feature_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_send_and_recv_msgs
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %r15d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_nlmsg_free
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CMD_GET_PROTOCOL_FEATURES,4,2 ## @NL80211_CMD_GET_PROTOCOL_FEATURES
	.comm	_protocol_feature_handler,4,2   ## @protocol_feature_handler
	.no_dead_strip	_get_nl80211_protocol_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_nl80211_protocol_features
_get_nl80211_protocol_features:         ; @get_nl80211_protocol_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_nlmsg_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _NL80211_CMD_GET_PROTOCOL_FEATURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_CMD_GET_PROTOCOL_FEATURES@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_nl80211_cmd
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _protocol_feature_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _protocol_feature_handler@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_send_and_recv_msgs
	ldr	w8, [sp, #12]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_nlmsg_free
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CMD_GET_PROTOCOL_FEATURES,4,2 ; @NL80211_CMD_GET_PROTOCOL_FEATURES
	.comm	_protocol_feature_handler,4,2   ; @protocol_feature_handler
	.no_dead_strip	_get_nl80211_protocol_features
.subsections_via_symbols
