	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkpreamble
_checkpreamble:                         ## @checkpreamble
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	(%rdi), %rax
	shlq	$4, %rsi
	movq	(%rax,%rsi), %rdx
	movq	_IEEE80211_T_CCK@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_3
## %bb.5:
	cmpl	$0, 12(%rax,%rsi)
	jne	LBB0_8
## %bb.6:
	movl	$0, %ebx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movq	_IEEE80211_RATE_BASIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	8(%rax,%rsi), %edi
	callq	_srate
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	$0, %ebx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_T_CCK,8,3            ## @IEEE80211_T_CCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"short preamble not meaningful, ignored"

L_.str.1:                               ## @.str.1
	.asciz	"short preamble not meaningful with rate %s, ignored"

	.comm	_IEEE80211_RATE_BASIC,4,2       ## @IEEE80211_RATE_BASIC
	.no_dead_strip	_checkpreamble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkpreamble
_checkpreamble:                         ; @checkpreamble
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w2, LBB0_9
; %bb.1:
	ldr	x8, [x0]
	lsl	x9, x1, #4
	ldr	x9, [x8, x9]
Lloh0:
	adrp	x10, _IEEE80211_T_CCK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_T_CCK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	add	x9, x8, x1, lsl #4
	ldr	w9, [x9, #12]
	cbnz	w9, LBB0_9
; %bb.3:
	cbz	w3, LBB0_8
; %bb.4:
	add	x8, x8, x1, lsl #4
	ldr	w8, [x8, #8]
Lloh3:
	adrp	x9, _IEEE80211_RATE_BASIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_RATE_BASIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w0, w8, w9
	bl	_srate
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	cbz	w3, LBB0_8
; %bb.6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_warnx
LBB0_8:
	mov	w2, #0
LBB0_9:
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_T_CCK,8,3            ; @IEEE80211_T_CCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"short preamble not meaningful, ignored"

l_.str.1:                               ; @.str.1
	.asciz	"short preamble not meaningful with rate %s, ignored"

	.comm	_IEEE80211_RATE_BASIC,4,2       ; @IEEE80211_RATE_BASIC
	.no_dead_strip	_checkpreamble
.subsections_via_symbols
