	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_parse_chandef
_nl80211_parse_chandef:                 ## @nl80211_parse_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_NL80211_ATTR_WIPHY_FREQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	callq	_nla_get_u32
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ieee80211_get_channel
	movq	%rax, 24(%r12)
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r12)
	movq	%rbx, 8(%r12)
	movq	$0, (%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r15), %rax
	movq	_NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_nla_get_u32
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_13
## %bb.5:
	movq	24(%r12), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_cfg80211_chandef_create
	jmp	LBB0_11
LBB0_6:
	movq	_NL80211_ATTR_CHANNEL_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	callq	_nla_get_u32
	movq	%rax, 16(%r12)
	movq	(%r15), %rax
	movq	_NL80211_ATTR_CENTER_FREQ1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_nla_get_u32
	movq	%rax, 8(%r12)
	movq	(%r15), %rax
LBB0_9:
	movq	_NL80211_ATTR_CENTER_FREQ2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_nla_get_u32
	movq	%rax, (%r12)
LBB0_11:
	movq	%r12, %rdi
	callq	_cfg80211_chandef_valid
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cfg80211_chandef_usable
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_14
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ## @NL80211_ATTR_WIPHY_FREQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_NL80211_ATTR_WIPHY_CHANNEL_TYPE,8,3 ## @NL80211_ATTR_WIPHY_CHANNEL_TYPE
	.comm	_NL80211_ATTR_CHANNEL_WIDTH,8,3 ## @NL80211_ATTR_CHANNEL_WIDTH
	.comm	_NL80211_ATTR_CENTER_FREQ1,8,3  ## @NL80211_ATTR_CENTER_FREQ1
	.comm	_NL80211_ATTR_CENTER_FREQ2,8,3  ## @NL80211_ATTR_CENTER_FREQ2
	.no_dead_strip	_nl80211_parse_chandef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_parse_chandef
_nl80211_parse_chandef:                 ; @nl80211_parse_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, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_WIPHY_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	bl	_nla_get_u32
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ieee80211_get_channel
Lloh3:
	adrp	x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x0, [x19, #16]
	stp	xzr, x22, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
Lloh6:
	adrp	x22, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_ATTR_WIPHY_CHANNEL_TYPE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_nla_get_u32
	mov	x2, x0
	and	w8, w2, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.7:
	ldr	x1, [x19, #24]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cfg80211_chandef_create
	b	LBB0_13
LBB0_8:
Lloh14:
	adrp	x9, _NL80211_ATTR_CHANNEL_WIDTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NL80211_ATTR_CHANNEL_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_13
; %bb.9:
	bl	_nla_get_u32
	str	x0, [x19, #16]
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _NL80211_ATTR_CENTER_FREQ1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_ATTR_CENTER_FREQ1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_nla_get_u32
	str	x0, [x19, #8]
	ldr	x8, [x21]
LBB0_11:
Lloh20:
	adrp	x9, _NL80211_ATTR_CENTER_FREQ2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NL80211_ATTR_CENTER_FREQ2@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_nla_get_u32
	str	x0, [x19]
LBB0_13:
	mov	x0, x19
	bl	_cfg80211_chandef_valid
	cbz	w0, LBB0_3
; %bb.14:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_cfg80211_chandef_usable
	cbz	w0, LBB0_3
; %bb.15:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_WIPHY_FREQ,8,3    ; @NL80211_ATTR_WIPHY_FREQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,8,3 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_NL80211_ATTR_WIPHY_CHANNEL_TYPE,8,3 ; @NL80211_ATTR_WIPHY_CHANNEL_TYPE
	.comm	_NL80211_ATTR_CHANNEL_WIDTH,8,3 ; @NL80211_ATTR_CHANNEL_WIDTH
	.comm	_NL80211_ATTR_CENTER_FREQ1,8,3  ; @NL80211_ATTR_CENTER_FREQ1
	.comm	_NL80211_ATTR_CENTER_FREQ2,8,3  ; @NL80211_ATTR_CENTER_FREQ2
	.no_dead_strip	_nl80211_parse_chandef
.subsections_via_symbols
