	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_send_bufs
_update_send_bufs:                      ## @update_send_bufs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %r15d
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movq	_QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le64_to_cpu
	movq	8(%r12), %rcx
	movq	16(%r12), %r8
	movl	(%r8,%rbx,4), %esi
	xorl	%esi, %eax
	movl	%eax, %edi
	notl	%edi
	andl	(%rcx,%rbx,4), %edi
	movzbl	(%r13), %ecx
	movl	%edi, %edx
	shll	%cl, %edx
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
	andl	%esi, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	%edx, %eax
	xorl	%esi, %eax
	movl	%eax, (%r8,%rbx,4)
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT,4,2 ## @QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT
	.no_dead_strip	_update_send_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_send_bufs
_update_send_bufs:                      ; @update_send_bufs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w22, [x0]
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbz	w22, LBB0_6
; %bb.2:
	mov	x21, #0
	lsl	x22, x22, #2
Lloh0:
	adrp	x23, _QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x21]
	bl	_le64_to_cpu
	ldp	x9, x8, [x19, #8]
	ldr	w10, [x9, x21]
	ldr	w9, [x8, x21]
	eor	w11, w0, w9
	bic	w11, w10, w11
	ldr	w10, [x23]
	lsl	w10, w11, w10
	and	w12, w10, w9
	cmp	w11, #0
	ccmp	w12, #0, #4, ne
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bic	w9, w9, w10
	and	w10, w10, w0
	orr	w9, w9, w10
	str	w9, [x8, x21]
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT,4,2 ; @QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT
	.no_dead_strip	_update_send_bufs
.subsections_via_symbols
