	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_modify_device
_mlx5_ib_modify_device:                 ## @mlx5_ib_modify_device
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_to_mdev
	movq	%rax, %r15
	movq	_IB_DEVICE_MODIFY_NODE_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	notl	%eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	testl	%ebx, %ecx
	je	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	movq	_IB_DEVICE_NODE_DESC_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_memcpy
	movl	(%r15), %edi
	movq	_MLX5_REG_NODE_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rsi
	movl	$4, %edx
	movl	$4, %r8d
	pushq	$1
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rdi
	movl	(%r14), %esi
	movl	(%r13), %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_DEVICE_MODIFY_NODE_DESC,4,2 ## @IB_DEVICE_MODIFY_NODE_DESC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IB_DEVICE_NODE_DESC_MAX,4,2    ## @IB_DEVICE_NODE_DESC_MAX
	.comm	_MLX5_REG_NODE_DESC,4,2         ## @MLX5_REG_NODE_DESC
	.no_dead_strip	_mlx5_ib_modify_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_modify_device
_mlx5_ib_modify_device:                 ; @mlx5_ib_modify_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_to_mdev
Lloh0:
	adrp	x8, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w22, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	tst	w8, w22
	b.eq	LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w1, [x19]
Lloh6:
	adrp	x22, _IB_DEVICE_NODE_DESC_MAX@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IB_DEVICE_NODE_DESC_MAX@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #8
	bl	_memcpy
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _MLX5_REG_NODE_DESC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_REG_NODE_DESC@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #4
	mov	w4, #4
	mov	w6, #0
	mov	w7, #1
	bl	_mlx5_core_access_reg
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x20]
	ldr	w1, [x19]
	ldr	w2, [x22]
	bl	_memcpy
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_DEVICE_MODIFY_NODE_DESC,4,2 ; @IB_DEVICE_MODIFY_NODE_DESC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IB_DEVICE_NODE_DESC_MAX,4,2    ; @IB_DEVICE_NODE_DESC_MAX
	.comm	_MLX5_REG_NODE_DESC,4,2         ; @MLX5_REG_NODE_DESC
	.no_dead_strip	_mlx5_ib_modify_device
.subsections_via_symbols
