	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ACCESS_REG_wrapper        ## -- Begin function mlx4_ACCESS_REG_wrapper
	.p2align	4, 0x90
_mlx4_ACCESS_REG_wrapper:               ## @mlx4_ACCESS_REG_wrapper
	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r15
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MLX4_ACCESS_REG_METHOD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	16(%r15), %edi
	callq	_be16_to_cpu
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mlx4_master_func_num
	cmpl	%r12d, %eax
	je	LBB0_4
## %bb.1:
	andq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movq	_MLX4_ACCESS_REG_WRITE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_4
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	jmp	LBB0_3
LBB0_4:
	movq	_MLX4_REG_ID_PTYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_6
## %bb.5:
	movq	8(%r15), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mlx4_slave_convert_port
	movl	%eax, (%r14)
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	_MLX4_CMD_ACCESS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$56, %rsp
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_ACCESS_REG_METHOD_MASK,8,3 ## @MLX4_ACCESS_REG_METHOD_MASK
	.comm	_MLX4_ACCESS_REG_WRITE,8,3      ## @MLX4_ACCESS_REG_WRITE
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MLX4_REG_ID_PTYS,8,3           ## @MLX4_REG_ID_PTYS
	.comm	_MLX4_CMD_ACCESS_REG,4,2        ## @MLX4_CMD_ACCESS_REG
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ## @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ACCESS_REG_wrapper        ; -- Begin function mlx4_ACCESS_REG_wrapper
	.p2align	2
_mlx4_ACCESS_REG_wrapper:               ; @mlx4_ACCESS_REG_wrapper
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x25, [x3, #8]
	ldr	x26, [x25]
Lloh0:
	adrp	x8, _MLX4_ACCESS_REG_METHOD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_ACCESS_REG_METHOD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	ldr	w0, [x25, #16]
	bl	_be16_to_cpu
	mov	x24, x0
	mov	x0, x19
	bl	_mlx4_master_func_num
	cmp	w0, w23
	b.eq	LBB0_3
; %bb.1:
	and	x8, x27, x26
Lloh3:
	adrp	x9, _MLX4_ACCESS_REG_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_ACCESS_REG_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x8, _MLX4_REG_ID_PTYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_REG_ID_PTYS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	x24, [x25, #8]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_mlx4_slave_convert_port
	str	w0, [x24]
LBB0_5:
	ldr	w1, [x22]
	ldr	w2, [x20]
	ldr	w3, [x21]
Lloh12:
	adrp	x8, _MLX4_CMD_ACCESS_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_ACCESS_REG@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
Lloh18:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh20:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w4, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mlx4_cmd_box
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_ACCESS_REG_METHOD_MASK,8,3 ; @MLX4_ACCESS_REG_METHOD_MASK
	.comm	_MLX4_ACCESS_REG_WRITE,8,3      ; @MLX4_ACCESS_REG_WRITE
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MLX4_REG_ID_PTYS,8,3           ; @MLX4_REG_ID_PTYS
	.comm	_MLX4_CMD_ACCESS_REG,4,2        ; @MLX4_CMD_ACCESS_REG
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ; @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
.subsections_via_symbols
