	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_set_cqm
_nl80211_set_cqm:                       ## @nl80211_set_cqm
	.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
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NL80211_ATTR_CQM_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %rax
	movq	_NL80211_ATTR_CQM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.1:
	movq	_nl80211_attr_cqm_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nla_parse_nested
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_NL80211_ATTR_CQM_RSSI_THOLD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movq	_NL80211_ATTR_CQM_RSSI_HYST@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_5
## %bb.4:
	callq	_nla_get_u32
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_nl80211_set_cqm_rssi
	jmp	LBB0_10
LBB0_5:
	movq	_NL80211_ATTR_CQM_TXE_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	movq	_NL80211_ATTR_CQM_TXE_PKTS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_9
## %bb.7:
	movq	_NL80211_ATTR_CQM_TXE_INTVL@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_9
## %bb.8:
	callq	_nla_get_u32
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_nl80211_set_cqm_txe
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_CQM_MAX,4,2       ## @NL80211_ATTR_CQM_MAX
	.comm	_NL80211_ATTR_CQM,8,3           ## @NL80211_ATTR_CQM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nl80211_attr_cqm_policy,4,2    ## @nl80211_attr_cqm_policy
	.comm	_NL80211_ATTR_CQM_RSSI_THOLD,8,3 ## @NL80211_ATTR_CQM_RSSI_THOLD
	.comm	_NL80211_ATTR_CQM_RSSI_HYST,8,3 ## @NL80211_ATTR_CQM_RSSI_HYST
	.comm	_NL80211_ATTR_CQM_TXE_RATE,8,3  ## @NL80211_ATTR_CQM_TXE_RATE
	.comm	_NL80211_ATTR_CQM_TXE_PKTS,8,3  ## @NL80211_ATTR_CQM_TXE_PKTS
	.comm	_NL80211_ATTR_CQM_TXE_INTVL,8,3 ## @NL80211_ATTR_CQM_TXE_INTVL
	.no_dead_strip	_nl80211_set_cqm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_set_cqm
_nl80211_set_cqm:                       ; @nl80211_set_cqm
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NL80211_ATTR_CQM_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_ATTR_CQM_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _NL80211_ATTR_CQM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_ATTR_CQM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x2, [x8, x9, lsl #3]
	cbz	x2, LBB0_9
; %bb.1:
Lloh11:
	adrp	x8, _nl80211_attr_cqm_policy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nl80211_attr_cqm_policy@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_nla_parse_nested
	cbnz	w0, LBB0_10
; %bb.2:
Lloh14:
	adrp	x8, _NL80211_ATTR_CQM_RSSI_THOLD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NL80211_ATTR_CQM_RSSI_THOLD@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.3:
Lloh17:
	adrp	x22, _NL80211_ATTR_CQM_RSSI_HYST@GOTPAGE
Lloh18:
	ldr	x22, [x22, _NL80211_ATTR_CQM_RSSI_HYST@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_nla_get_u32
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_u32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nl80211_set_cqm_rssi
	b	LBB0_10
LBB0_5:
Lloh19:
	adrp	x8, _NL80211_ATTR_CQM_TXE_RATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NL80211_ATTR_CQM_TXE_RATE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.6:
Lloh22:
	adrp	x22, _NL80211_ATTR_CQM_TXE_PKTS@GOTPAGE
Lloh23:
	ldr	x22, [x22, _NL80211_ATTR_CQM_TXE_PKTS@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_9
; %bb.7:
Lloh24:
	adrp	x23, _NL80211_ATTR_CQM_TXE_INTVL@GOTPAGE
Lloh25:
	ldr	x23, [x23, _NL80211_ATTR_CQM_TXE_INTVL@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_9
; %bb.8:
	bl	_nla_get_u32
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_u32
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
	bl	_nla_get_u32
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_nl80211_set_cqm_txe
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_CQM_MAX,4,2       ; @NL80211_ATTR_CQM_MAX
	.comm	_NL80211_ATTR_CQM,8,3           ; @NL80211_ATTR_CQM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nl80211_attr_cqm_policy,4,2    ; @nl80211_attr_cqm_policy
	.comm	_NL80211_ATTR_CQM_RSSI_THOLD,8,3 ; @NL80211_ATTR_CQM_RSSI_THOLD
	.comm	_NL80211_ATTR_CQM_RSSI_HYST,8,3 ; @NL80211_ATTR_CQM_RSSI_HYST
	.comm	_NL80211_ATTR_CQM_TXE_RATE,8,3  ; @NL80211_ATTR_CQM_TXE_RATE
	.comm	_NL80211_ATTR_CQM_TXE_PKTS,8,3  ; @NL80211_ATTR_CQM_TXE_PKTS
	.comm	_NL80211_ATTR_CQM_TXE_INTVL,8,3 ; @NL80211_ATTR_CQM_TXE_INTVL
	.no_dead_strip	_nl80211_set_cqm
.subsections_via_symbols
