	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octnet_prepare_pci_cmd_o2
_octnet_prepare_pci_cmd_o2:             ## @octnet_prepare_pci_cmd_o2
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_LIO_PCICMD_O2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_ORDERED_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_DEFAULT_POW_GRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ebx
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_LIO_DATA
	movq	%rax, %r15
LBB0_2:
	movq	%r15, 20(%r12)
	movl	$1, 4(%r12)
	andl	$3, %ebx
	orl	$4, %ebx
	movl	%ebx, 8(%r12)
	cmpl	$0, 32(%r14)
	je	LBB0_3
## %bb.4:
	movl	$1, 12(%r12)
	leaq	24(%r14), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	28(%r14), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_OPCODE_NIC_NW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	8(%r14), %rax
	movq	%rax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_PCICMD_O2,4,2              ## @LIO_PCICMD_O2
	.comm	_ORDERED_TAG,4,2                ## @ORDERED_TAG
	.comm	_DEFAULT_POW_GRP,4,2            ## @DEFAULT_POW_GRP
	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_NW_DATA,4,2         ## @OPCODE_NIC_NW_DATA
	.no_dead_strip	_octnet_prepare_pci_cmd_o2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octnet_prepare_pci_cmd_o2
_octnet_prepare_pci_cmd_o2:             ; @octnet_prepare_pci_cmd_o2
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _LIO_PCICMD_O2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIO_PCICMD_O2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ORDERED_TAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ORDERED_TAG@GOTPAGEOFF]
	str	w8, [x19, #36]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _DEFAULT_POW_GRP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEFAULT_POW_GRP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w22, [x8]
	cbnz	x21, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_LIO_DATA
	mov	x21, x0
LBB0_2:
	stur	x21, [x19, #20]
	mov	w8, #1
	mov	w9, #4
	bfxil	w9, w22, #0, #2
	stp	w8, w9, [x19, #4]
	ldr	w9, [x20, #32]
	cbz	w9, LBB0_4
; %bb.3:
	str	w8, [x19, #12]
	add	x8, x20, #24
	b	LBB0_5
LBB0_4:
	add	x8, x20, #28
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh9:
	adrp	x8, _OPCODE_NIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPCODE_NIC@GOTPAGEOFF]
Lloh11:
	adrp	x9, _OPCODE_NIC_NW_DATA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OPCODE_NIC_NW_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x20, #8]
	str	x8, [x19]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_PCICMD_O2,4,2              ; @LIO_PCICMD_O2
	.comm	_ORDERED_TAG,4,2                ; @ORDERED_TAG
	.comm	_DEFAULT_POW_GRP,4,2            ; @DEFAULT_POW_GRP
	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_NW_DATA,4,2         ; @OPCODE_NIC_NW_DATA
	.no_dead_strip	_octnet_prepare_pci_cmd_o2
.subsections_via_symbols
