	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_pending
_cmd_pending:                           ## @cmd_pending
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_pci_channel_offline
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	_mlx4_priv
	movq	_HCR_STATUS_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_HCR_GO_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %ebx
	movl	$1, %edi
	shll	%cl, %edi
	callq	_swab32
	testl	%r14d, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_mlx4_priv
	movl	(%rax), %r15d
	movq	_HCR_T_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_swab32
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	xorl	%ebx, %ebx
	cmpl	%ecx, %r15d
	sete	%bl
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HCR_STATUS_OFFSET,8,3          ## @HCR_STATUS_OFFSET
	.comm	_HCR_GO_BIT,4,2                 ## @HCR_GO_BIT
	.comm	_HCR_T_BIT,4,2                  ## @HCR_T_BIT
	.no_dead_strip	_cmd_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_pending
_cmd_pending:                           ; @cmd_pending
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_pci_channel_offline
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_mlx4_priv
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _HCR_STATUS_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCR_STATUS_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh6:
	adrp	x8, _HCR_GO_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCR_GO_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w21, #1
	lsl	w0, w21, w8
	bl	_swab32
	tst	w0, w20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mlx4_priv
	ldr	w19, [x0]
Lloh9:
	adrp	x8, _HCR_T_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCR_T_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w0, w21, w8
	bl	_swab32
	tst	w0, w20
	cset	w8, ne
	cmp	w19, w8
	cset	w21, eq
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HCR_STATUS_OFFSET,8,3          ; @HCR_STATUS_OFFSET
	.comm	_HCR_GO_BIT,4,2                 ; @HCR_GO_BIT
	.comm	_HCR_T_BIT,4,2                  ; @HCR_T_BIT
	.no_dead_strip	_cmd_pending
.subsections_via_symbols
