	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_remain_on_channel
_nl80211_remain_on_channel:             ## @nl80211_remain_on_channel
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rax
	movq	_NL80211_ATTR_WIPHY_FREQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_2
## %bb.1:
	movq	_NL80211_ATTR_DURATION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r12
	callq	_nla_get_u32
	movq	%rax, %r13
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.7:
	movq	_NL80211_MIN_REMAIN_ON_CHANNEL_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jl	LBB0_2
## %bb.8:
	cmpq	8(%r15), %r13
	jle	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nl80211_parse_chandef
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:
	movq	_NLMSG_DEFAULT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nlmsg_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_NL80211_CMD_REMAIN_ON_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	callq	_nl80211hdr_put
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_14:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_rdev_remain_on_channel
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	_NL80211_ATTR_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_nla_put_u64
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_nlmsg_free
	jmp	LBB0_19
LBB0_16:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_genlmsg_end
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_genlmsg_reply
	movl	%eax, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ## @NL80211_ATTR_WIPHY_FREQ
	.comm	_NL80211_ATTR_DURATION,8,3      ## @NL80211_ATTR_DURATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL,4,2 ## @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NL80211_MIN_REMAIN_ON_CHANNEL_TIME,8,3 ## @NL80211_MIN_REMAIN_ON_CHANNEL_TIME
	.comm	_NLMSG_DEFAULT_SIZE,4,2         ## @NLMSG_DEFAULT_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_CMD_REMAIN_ON_CHANNEL,4,2 ## @NL80211_CMD_REMAIN_ON_CHANNEL
	.comm	_NL80211_ATTR_COOKIE,4,2        ## @NL80211_ATTR_COOKIE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_nl80211_remain_on_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_remain_on_channel
_nl80211_remain_on_channel:             ; @nl80211_remain_on_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _NL80211_ATTR_DURATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_ATTR_DURATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_6
; %bb.2:
	mov	x19, x1
	ldr	x8, [x1, #16]
	ldp	x20, x21, [x8]
	bl	_nla_get_u32
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	mov	x22, x0
Lloh9:
	adrp	x8, _NL80211_MIN_REMAIN_ON_CHANNEL_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_MIN_REMAIN_ON_CHANNEL_TIME@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.le	LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_nl80211_parse_chandef
	mov	x25, x0
	cbnz	w0, LBB0_9
; %bb.11:
Lloh16:
	adrp	x8, _NLMSG_DEFAULT_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NLMSG_DEFAULT_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_nlmsg_new
	cbz	x0, LBB0_14
; %bb.12:
	mov	x23, x0
	ldp	w2, w1, [x19]
Lloh22:
	adrp	x8, _NL80211_CMD_REMAIN_ON_CHANNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NL80211_CMD_REMAIN_ON_CHANNEL@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	w3, #0
	bl	_nl80211hdr_put
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_18
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_15:
	ldr	w2, [sp, #8]
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_rdev_remain_on_channel
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.16:
Lloh27:
	adrp	x8, _NL80211_ATTR_COOKIE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NL80211_ATTR_COOKIE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x23
	bl	_nla_put_u64
	cbz	x0, LBB0_19
; %bb.17:
Lloh30:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_18:
	mov	x0, x23
	bl	_nlmsg_free
	b	LBB0_9
LBB0_19:
	mov	x0, x23
	mov	x1, x24
	bl	_genlmsg_end
	mov	x0, x23
	mov	x1, x19
	bl	_genlmsg_reply
	mov	x25, x0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ; @NL80211_ATTR_WIPHY_FREQ
	.comm	_NL80211_ATTR_DURATION,8,3      ; @NL80211_ATTR_DURATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL,4,2 ; @WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NL80211_MIN_REMAIN_ON_CHANNEL_TIME,8,3 ; @NL80211_MIN_REMAIN_ON_CHANNEL_TIME
	.comm	_NLMSG_DEFAULT_SIZE,4,2         ; @NLMSG_DEFAULT_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_CMD_REMAIN_ON_CHANNEL,4,2 ; @NL80211_CMD_REMAIN_ON_CHANNEL
	.comm	_NL80211_ATTR_COOKIE,4,2        ; @NL80211_ATTR_COOKIE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_nl80211_remain_on_channel
.subsections_via_symbols
