	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_allocate_fid        ## -- Begin function orinoco_hw_allocate_fid
	.p2align	4, 0x90
_orinoco_hw_allocate_fid:               ## @orinoco_hw_allocate_fid
	.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, %rbx
	movq	16(%rdi), %r14
	leaq	8(%rdi), %r12
	movq	8(%rdi), %rax
	movl	4(%rdi), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
	movl	%eax, %r15d
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_3
## %bb.1:
	movq	_TX_NICBUF_SIZE_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, 4(%rbx)
	jle	LBB0_3
## %bb.2:
	movl	%esi, 4(%rbx)
	movq	8(%rbx), %rax
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TX_NICBUF_SIZE_BUG,4,2         ## @TX_NICBUF_SIZE_BUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware ALLOC bug detected (old Symbol firmware?). Work around %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed!"

L_.str.2:                               ## @.str.2
	.asciz	"ok."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_allocate_fid        ; -- Begin function orinoco_hw_allocate_fid
	.p2align	2
_orinoco_hw_allocate_fid:               ; @orinoco_hw_allocate_fid
	.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	x19, [x0, #16]
	mov	x22, x0
	ldr	x8, [x22, #8]!
	ldr	x8, [x8]
	ldr	w1, [x0, #4]
	mov	x0, x22
	mov	x2, x20
	blr	x8
	mov	x21, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _TX_NICBUF_SIZE_BUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_NICBUF_SIZE_BUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.2:
	str	w1, [x20, #4]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x2, x20
	blr	x8
	mov	x21, x0
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x2, x9, x8, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_3:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TX_NICBUF_SIZE_BUG,4,2         ; @TX_NICBUF_SIZE_BUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware ALLOC bug detected (old Symbol firmware?). Work around %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed!"

l_.str.2:                               ; @.str.2
	.asciz	"ok."

.subsections_via_symbols
