	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_setup_7322_cleanup
_qib_setup_7322_cleanup:                ## @qib_setup_7322_cleanup
	.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
	movq	%rdi, %r15
	callq	_qib_7322_free_irq
	movq	8(%r15), %rax
	movl	28(%rax), %edi
	callq	_kfree
	movq	8(%r15), %rax
	movl	24(%rax), %edi
	callq	_kfree
	movq	8(%r15), %rax
	movl	20(%rax), %edi
	callq	_kfree
	movq	8(%r15), %rax
	movl	16(%rax), %edi
	callq	_kfree
	movq	8(%r15), %rax
	movl	12(%rax), %edi
	callq	_kfree
	cmpl	$0, 4(%r15)
	jle	LBB0_5
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QSFP_GPIO_MOD_PRS_N@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_QSFP_GPIO_PORT2_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	callq	_kfree
	movq	_QIB_HAS_QSFP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	orl	%r13d, %ebx
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	notl	%ebx
	movq	8(%r15), %rax
	andl	4(%rax), %ebx
	movl	%ebx, 4(%rax)
	movq	_kr_gpio_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_qib_write_kreg
	movq	8(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QSFP_GPIO_MOD_PRS_N,4,2        ## @QSFP_GPIO_MOD_PRS_N
	.comm	_QSFP_GPIO_PORT2_SHIFT,4,2      ## @QSFP_GPIO_PORT2_SHIFT
	.comm	_QIB_HAS_QSFP,4,2               ## @QIB_HAS_QSFP
	.comm	_kr_gpio_mask,4,2               ## @kr_gpio_mask
	.comm	_DCACtrlA,4,2                   ## @DCACtrlA
	.comm	_QIB_DCA_ENABLED,4,2            ## @QIB_DCA_ENABLED
	.no_dead_strip	_qib_setup_7322_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_setup_7322_cleanup
_qib_setup_7322_cleanup:                ; @qib_setup_7322_cleanup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_qib_7322_free_irq
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #28]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #24]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #20]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #16]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #12]
	bl	_kfree
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _QSFP_GPIO_MOD_PRS_N@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QSFP_GPIO_MOD_PRS_N@GOTPAGEOFF]
Lloh2:
	adrp	x22, _QSFP_GPIO_PORT2_SHIFT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QSFP_GPIO_PORT2_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _QIB_HAS_QSFP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _QIB_HAS_QSFP@GOTPAGEOFF]
Lloh6:
	adrp	x24, _kr_gpio_mask@GOTPAGE
Lloh7:
	ldr	x24, [x24, _kr_gpio_mask@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x21]
	ldr	w26, [x22]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	bl	_kfree
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w25, w26
	orr	w25, w8, w25
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	bic	w2, w9, w25
	str	w2, [x8, #4]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QSFP_GPIO_MOD_PRS_N,4,2        ; @QSFP_GPIO_MOD_PRS_N
	.comm	_QSFP_GPIO_PORT2_SHIFT,4,2      ; @QSFP_GPIO_PORT2_SHIFT
	.comm	_QIB_HAS_QSFP,4,2               ; @QIB_HAS_QSFP
	.comm	_kr_gpio_mask,4,2               ; @kr_gpio_mask
	.comm	_DCACtrlA,4,2                   ; @DCACtrlA
	.comm	_QIB_DCA_ENABLED,4,2            ; @QIB_DCA_ENABLED
	.no_dead_strip	_qib_setup_7322_cleanup
.subsections_via_symbols
