	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_access_reg           ## -- Begin function mlx5_core_access_reg
	.p2align	4, 0x90
_mlx5_core_access_reg:                  ## @mlx5_core_access_reg
	.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	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_access_register_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	addl	%ebx, %r12d
	movq	_access_register_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r13d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	addl	%r14d, %r13d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_kvzalloc
	movq	%rax, %rbx
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_kvzalloc
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	_access_register_in@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_register_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	(%r14), %edi
	movq	_opcode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_CMD_OP_ACCESS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	(%r14), %edi
	movq	_op_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	cmpl	$0, 24(%rbp)
	sete	%cl
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	(%r14), %edi
	movq	_argument@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	16(%rbp), %ecx
	callq	_MLX5_SET
	movl	(%r14), %edi
	movq	_register_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_MLX5_SET
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r15, %rcx
	movl	%r12d, %r8d
	callq	_mlx5_cmd_exec
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_access_register_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_register_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MLX5_ADDR_OF
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_kvfree
	movq	%rbx, %rdi
	callq	_kvfree
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_access_register_out,4,2        ## @access_register_out
	.comm	_access_register_in,4,2         ## @access_register_in
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_register_data,4,2              ## @register_data
	.comm	_opcode,4,2                     ## @opcode
	.comm	_MLX5_CMD_OP_ACCESS_REG,4,2     ## @MLX5_CMD_OP_ACCESS_REG
	.comm	_op_mod,4,2                     ## @op_mod
	.comm	_argument,4,2                   ## @argument
	.comm	_register_id,4,2                ## @register_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_core_access_reg           ; -- Begin function mlx5_core_access_reg
	.p2align	2
_mlx5_core_access_reg:                  ; @mlx5_core_access_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x28, x7
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	mov	x19, x4
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	x20, x2
	mov	x23, x1
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _access_register_out@GOTPAGE
Lloh1:
	ldr	x8, [x8, _access_register_out@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MLX5_ST_SZ_BYTES
	add	w25, w0, w19
Lloh3:
	adrp	x24, _access_register_in@GOTPAGE
Lloh4:
	ldr	x24, [x24, _access_register_in@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	add	w27, w0, w20
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
Lloh8:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x27
	bl	_kvzalloc
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x25
	bl	_kvzalloc
	mov	x22, x0
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	neg	w20, w26
	b	LBB0_4
LBB0_2:
	ldr	w0, [x24]
Lloh10:
	adrp	x26, _register_data@GOTPAGE
Lloh11:
	ldr	x26, [x26, _register_data@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x1, x21
	bl	_MLX5_ADDR_OF
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
	ldr	w0, [x24]
Lloh12:
	adrp	x8, _opcode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MLX5_CMD_OP_ACCESS_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5_CMD_OP_ACCESS_REG@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, x21
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh18:
	adrp	x8, _op_mod@GOTPAGE
Lloh19:
	ldr	x8, [x8, _op_mod@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	cmp	w28, #0
	cset	w3, eq
	mov	x1, x21
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh21:
	adrp	x8, _argument@GOTPAGE
Lloh22:
	ldr	x8, [x8, _argument@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x1, x21
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_MLX5_SET
	ldr	w0, [x24]
Lloh24:
	adrp	x8, _register_id@GOTPAGE
Lloh25:
	ldr	x8, [x8, _register_id@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x21
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	bl	_MLX5_SET
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x27
	mov	x3, x22
	mov	x4, x25
	bl	_mlx5_cmd_exec
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _access_register_out@GOTPAGE
Lloh28:
	ldr	x8, [x8, _access_register_out@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w2, [x26]
	mov	x1, x22
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
LBB0_4:
	mov	x0, x22
	bl	_kvfree
	mov	x0, x21
	bl	_kvfree
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_access_register_out,4,2        ; @access_register_out
	.comm	_access_register_in,4,2         ; @access_register_in
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_register_data,4,2              ; @register_data
	.comm	_opcode,4,2                     ; @opcode
	.comm	_MLX5_CMD_OP_ACCESS_REG,4,2     ; @MLX5_CMD_OP_ACCESS_REG
	.comm	_op_mod,4,2                     ; @op_mod
	.comm	_argument,4,2                   ; @argument
	.comm	_register_id,4,2                ; @register_id
.subsections_via_symbols
