	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_mcg_port_cleanup       ## -- Begin function mlx4_ib_mcg_port_cleanup
	.p2align	4, 0x90
_mlx4_ib_mcg_port_cleanup:              ## @mlx4_ib_mcg_port_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	__mlx4_ib_mcg_port_cleanup
LBB0_4:
	movl	$0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movl	$0, (%rax)
	addq	$4, %r14
	movq	_mcg_clean_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	movq	_clean_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mcg_clean_task,4,2             ## @mcg_clean_task
	.comm	_clean_wq,4,2                   ## @clean_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_mcg_port_cleanup       ; -- Begin function mlx4_ib_mcg_port_cleanup
	.p2align	2
_mlx4_ib_mcg_port_cleanup:              ; @mlx4_ib_mcg_port_cleanup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	cbz	w1, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	__mlx4_ib_mcg_port_cleanup
LBB0_3:
	str	wzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.6:
	str	x19, [x0, #8]
	str	wzr, [x0]
	add	x19, x0, #4
Lloh3:
	adrp	x8, _mcg_clean_task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mcg_clean_task@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
Lloh6:
	adrp	x8, _clean_wq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _clean_wq@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mcg_clean_task,4,2             ; @mcg_clean_task
	.comm	_clean_wq,4,2                   ; @clean_wq
.subsections_via_symbols
