	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_cookie
_generate_cookie:                       ## @generate_cookie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	shll	$12, %eax
	movl	$12288, %ebx                    ## imm = 0x3000
	subl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
	callq	_B43legacy_WARN_ON
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_pio_txpacket_getindex
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	$61440, %eax                    ## imm = 0xF000
	setne	%dil
	callq	_B43legacy_WARN_ON
	orl	%r14d, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_generate_cookie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_cookie
_generate_cookie:                       ; @generate_cookie
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #12288
	sub	w20, w9, w8, lsl #12
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_B43legacy_WARN_ON
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_pio_txpacket_getindex
	mov	x19, x0
	tst	w0, #0xf000
	cset	w0, ne
	bl	_B43legacy_WARN_ON
	orr	w0, w19, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_generate_cookie
.subsections_via_symbols
