	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_is_valid_iftype
_ath6kl_is_valid_iftype:                ## @ath6kl_is_valid_iftype
	.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	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%esi, %edi
	movq	%rcx, %rsi
	callq	_ath6kl_nliftype_to_drv_iftype
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	cmpq	$0, 24(%r13)
	je	LBB0_2
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 16(%r13)
	jne	LBB0_17
	jmp	LBB0_6
LBB0_4:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
LBB0_6:
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_8
LBB0_10:
	movq	_NL80211_IFTYPE_P2P_CLIENT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_17
LBB0_12:
	movl	8(%r13), %ebx
	cmpl	(%r13), %ebx
	jge	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_14
	jmp	LBB0_17
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_CLIENT,4,2  ## @NL80211_IFTYPE_P2P_CLIENT
	.comm	_NL80211_IFTYPE_P2P_GO,4,2      ## @NL80211_IFTYPE_P2P_GO
	.no_dead_strip	_ath6kl_is_valid_iftype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_is_valid_iftype
_ath6kl_is_valid_iftype:                ; @ath6kl_is_valid_iftype
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x3
	bl	_ath6kl_nliftype_to_drv_iftype
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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_4:
Lloh0:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_11
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x20, #4]
	mov	x0, x22
	bl	_BIT
	tst	w0, w23
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_11:
Lloh9:
	adrp	x8, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NL80211_IFTYPE_P2P_GO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_GO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_2
; %bb.12:
	ldr	w22, [x20, #8]
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20, #4]
	mov	x0, x22
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #0
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_13
	b	LBB0_3
LBB0_15:
	str	w22, [x19]
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_CLIENT,4,2  ; @NL80211_IFTYPE_P2P_CLIENT
	.comm	_NL80211_IFTYPE_P2P_GO,4,2      ; @NL80211_IFTYPE_P2P_GO
	.no_dead_strip	_ath6kl_is_valid_iftype
.subsections_via_symbols
