	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ACCESS_MEM
_mlx4_ACCESS_MEM:                       ## @mlx4_ACCESS_MEM
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%r8d, %r10d
	movl	%edx, %r8d
	movl	%esi, %eax
	movl	%ecx, %edx
	orl	%esi, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	movl	%r8d, %esi
	andl	$-128, %esi
	orl	%edx, %esi
	movzbl	%r10b, %edx
	orl	%esi, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	%r10d, %r9d
	callq	_mlx4_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.3:
	orl	%r8d, %ecx
	orl	(%rdi), %eax
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %edx
	orl	(%rdi), %edx
	orl	%r8d, %ecx
	movl	%ecx, %eax
	movl	%edx, %ecx
LBB0_5:
	movl	%eax, -4(%rbp)
	movq	_MLX4_CMD_ACCESS_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	leaq	-4(%rbp), %rdx
	movl	%ecx, %esi
	movl	%r10d, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r11
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad access mem params - slave_addr:0x%llx master_addr:0x%llx slave_id:%d size:%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_CMD_ACCESS_MEM,4,2        ## @MLX4_CMD_ACCESS_MEM
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.no_dead_strip	_mlx4_ACCESS_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ACCESS_MEM
_mlx4_ACCESS_MEM:                       ; @mlx4_ACCESS_MEM
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x9, x4
	mov	x4, x2
	mov	x8, x1
	orr	w10, w3, w1
	and	w10, w10, #0xfff
	and	w11, w2, #0xffffff80
	orr	w10, w10, w11
	and	w11, w9, #0xff
	orr	w10, w10, w11
	cbz	w10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x8
	mov	x5, x9
	bl	_mlx4_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	cbz	w5, LBB0_4
; %bb.3:
	orr	w1, w3, w4
	ldr	w10, [x0]
	orr	w8, w10, w8
	b	LBB0_5
LBB0_4:
	ldr	w10, [x0]
	orr	w1, w10, w8
	orr	w8, w3, w4
LBB0_5:
	stur	w8, [x29, #-4]
Lloh5:
	adrp	x8, _MLX4_CMD_ACCESS_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_CMD_ACCESS_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
Lloh8:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	sub	x2, x29, #4
	mov	x3, x9
	mov	w4, #0
	bl	_mlx4_cmd_imm
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad access mem params - slave_addr:0x%llx master_addr:0x%llx slave_id:%d size:%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_CMD_ACCESS_MEM,4,2        ; @MLX4_CMD_ACCESS_MEM
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.no_dead_strip	_mlx4_ACCESS_MEM
.subsections_via_symbols
