	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_send_chandef
_nl80211_send_chandef:                  ## @nl80211_send_chandef
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_cfg80211_chandef_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_NL80211_ATTR_WIPHY_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.2:
	movq	_NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_cfg80211_get_chandef_type
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movl	(%rbx), %edx
LBB0_4:
	movq	_NL80211_ATTR_CHANNEL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_NL80211_ATTR_CENTER_FREQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%rbx), %edx
	xorl	%ebx, %ebx
	testl	%edx, %edx
	je	LBB0_9
## %bb.7:
	movq	_NL80211_ATTR_CENTER_FREQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,4,2    ## @NL80211_ATTR_WIPHY_FREQ
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_NL80211_ATTR_WIPHY_CHANNEL_TYPE,4,2 ## @NL80211_ATTR_WIPHY_CHANNEL_TYPE
	.comm	_NL80211_ATTR_CHANNEL_WIDTH,4,2 ## @NL80211_ATTR_CHANNEL_WIDTH
	.comm	_NL80211_ATTR_CENTER_FREQ1,4,2  ## @NL80211_ATTR_CENTER_FREQ1
	.comm	_NL80211_ATTR_CENTER_FREQ2,4,2  ## @NL80211_ATTR_CENTER_FREQ2
	.no_dead_strip	_nl80211_send_chandef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_send_chandef
_nl80211_send_chandef:                  ; @nl80211_send_chandef
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_cfg80211_chandef_valid
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x8, _NL80211_ATTR_WIPHY_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_ATTR_WIPHY_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w2, [x20]
	sub	w8, w2, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_cfg80211_get_chandef_type
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nla_put_u32
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	w2, [x20]
LBB0_4:
Lloh6:
	adrp	x8, _NL80211_ATTR_CHANNEL_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_ATTR_CHANNEL_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _NL80211_ATTR_CENTER_FREQ1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_ATTR_CENTER_FREQ1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_nla_put_u32
	cbz	x0, LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _NL80211_ATTR_CENTER_FREQ2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_ATTR_CENTER_FREQ2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,4,2    ; @NL80211_ATTR_WIPHY_FREQ
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_NL80211_ATTR_WIPHY_CHANNEL_TYPE,4,2 ; @NL80211_ATTR_WIPHY_CHANNEL_TYPE
	.comm	_NL80211_ATTR_CHANNEL_WIDTH,4,2 ; @NL80211_ATTR_CHANNEL_WIDTH
	.comm	_NL80211_ATTR_CENTER_FREQ1,4,2  ; @NL80211_ATTR_CENTER_FREQ1
	.comm	_NL80211_ATTR_CENTER_FREQ2,4,2  ; @NL80211_ATTR_CENTER_FREQ2
	.no_dead_strip	_nl80211_send_chandef
.subsections_via_symbols
