	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_mad_ifc               ## -- Begin function mlx5_cmd_mad_ifc
	.p2align	4, 0x90
_mlx5_cmd_mad_ifc:                      ## @mlx5_cmd_mad_ifc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_mad_ifc_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_mad_ifc_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	movq	%rax, %r13
	movl	(%r15), %esi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	_mad_ifc_in@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_MAD_IFC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_op_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movq	_mad@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_mad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_FLD_SZ_BYTES
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_mlx5_cmd_exec
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_mad_ifc_out@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_response_mad_packet@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_MLX5_FLD_SZ_BYTES
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mad_ifc_out,4,2                ## @mad_ifc_out
	.comm	_mad_ifc_in,4,2                 ## @mad_ifc_in
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_MAD_IFC,4,2        ## @MLX5_CMD_OP_MAD_IFC
	.comm	_op_mod,4,2                     ## @op_mod
	.comm	_mad,4,2                        ## @mad
	.comm	_response_mad_packet,4,2        ## @response_mad_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cmd_mad_ifc               ; -- Begin function mlx5_cmd_mad_ifc
	.p2align	2
_mlx5_cmd_mad_ifc:                      ; @mlx5_cmd_mad_ifc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x4
	mov	x27, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _mad_ifc_out@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mad_ifc_out@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	mov	x23, x0
Lloh3:
	adrp	x19, _mad_ifc_in@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mad_ifc_in@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_MLX5_ST_SZ_BYTES
	mov	x25, x0
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w28, [x8]
Lloh8:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kzalloc
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x23
	bl	_kzalloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	neg	w22, w28
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _opcode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _MLX5_CMD_OP_MAD_IFC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5_CMD_OP_MAD_IFC@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_MLX5_SET
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _op_mod@GOTPAGE
Lloh17:
	ldr	x8, [x8, _op_mod@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x27
	bl	_MLX5_SET
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x26
	bl	_MLX5_SET
	ldr	w0, [x19]
Lloh19:
	adrp	x27, _mad@GOTPAGE
Lloh20:
	ldr	x27, [x27, _mad@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x26, x0
	ldr	w0, [x19]
	ldr	w1, [x27]
	bl	_MLX5_FLD_SZ_BYTES
	mov	x2, x0
	mov	x0, x26
	mov	x1, x24
	bl	_memcpy
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	x3, x21
	mov	x4, x23
	bl	_mlx5_cmd_exec
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh21:
	adrp	x23, _mad_ifc_out@GOTPAGE
Lloh22:
	ldr	x23, [x23, _mad_ifc_out@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh23:
	adrp	x19, _response_mad_packet@GOTPAGE
Lloh24:
	ldr	x19, [x19, _response_mad_packet@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	w0, [x23]
	ldr	w1, [x19]
	bl	_MLX5_FLD_SZ_BYTES
	mov	x2, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_memcpy
	mov	w22, #0
LBB0_4:
	mov	x0, x21
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_mad_ifc_out,4,2                ; @mad_ifc_out
	.comm	_mad_ifc_in,4,2                 ; @mad_ifc_in
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_MAD_IFC,4,2        ; @MLX5_CMD_OP_MAD_IFC
	.comm	_op_mod,4,2                     ; @op_mod
	.comm	_mad,4,2                        ; @mad
	.comm	_response_mad_packet,4,2        ; @response_mad_packet
.subsections_via_symbols
