	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_DEV_CAP_wrapper     ## -- Begin function mlx4_QUERY_DEV_CAP_wrapper
	.p2align	4, 0x90
_mlx4_QUERY_DEV_CAP_wrapper:            ## @mlx4_QUERY_DEV_CAP_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdi, %r15
	movl	8(%r8), %edx
	movq	_MLX4_CMD_QUERY_DEV_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%r12), %rsi
	movq	_QUERY_DEV_CAP_EXT_FLAGS_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_MLX4_GET
	movq	_MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	callq	_MLX4_PUT
	movq	(%r12), %rsi
	movq	_QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_MLX4_GET
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_MLX4_PUT
	movq	(%r12), %rsi
	movq	_QUERY_DEV_CAP_BF_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%edi, %edi
	callq	_MLX4_GET
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_MLX4_PUT
	movq	_QUERY_DEV_CAP_BMME_FLAGS_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rsi
	callq	_MLX4_GET
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_MLX4_PUT
	movq	(%r15), %rax
	movq	_MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rsi
	movq	_QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%edi, %edi
	callq	_MLX4_GET
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_MLX4_PUT
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CMD_QUERY_DEV_CAP,4,2     ## @MLX4_CMD_QUERY_DEV_CAP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_QUERY_DEV_CAP_EXT_FLAGS_OFFSET,4,2 ## @QUERY_DEV_CAP_EXT_FLAGS_OFFSET
	.comm	_MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,2 ## @MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ## @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET,4,2 ## @QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET
	.comm	_QUERY_DEV_CAP_BF_OFFSET,4,2    ## @QUERY_DEV_CAP_BF_OFFSET
	.comm	_QUERY_DEV_CAP_BMME_FLAGS_OFFSET,4,2 ## @QUERY_DEV_CAP_BMME_FLAGS_OFFSET
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ## @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ## @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET,4,2 ## @QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_QUERY_DEV_CAP_wrapper     ; -- Begin function mlx4_QUERY_DEV_CAP_wrapper
	.p2align	2
_mlx4_QUERY_DEV_CAP_wrapper:            ; @mlx4_QUERY_DEV_CAP_wrapper
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x4
	mov	x21, x0
	ldr	w2, [x4, #8]
Lloh0:
	adrp	x8, _MLX4_CMD_QUERY_DEV_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_CMD_QUERY_DEV_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_mlx4_cmd_box
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x1, [x19]
Lloh9:
	adrp	x22, _QUERY_DEV_CAP_EXT_FLAGS_OFFSET@GOTPAGE
Lloh10:
	ldr	x22, [x22, _QUERY_DEV_CAP_EXT_FLAGS_OFFSET@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_MLX4_GET
Lloh11:
	adrp	x8, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mvn	w1, w8
	ldr	x0, [x19]
	ldr	w2, [x22]
	bl	_MLX4_PUT
	ldr	x1, [x19]
Lloh14:
	adrp	x22, _QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET@GOTPAGE
Lloh15:
	ldr	x22, [x22, _QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_MLX4_GET
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_MLX4_PUT
	ldr	x1, [x19]
Lloh16:
	adrp	x22, _QUERY_DEV_CAP_BF_OFFSET@GOTPAGE
Lloh17:
	ldr	x22, [x22, _QUERY_DEV_CAP_BF_OFFSET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w0, #0
	bl	_MLX4_GET
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_MLX4_PUT
Lloh18:
	adrp	x22, _QUERY_DEV_CAP_BMME_FLAGS_OFFSET@GOTPAGE
Lloh19:
	ldr	x22, [x22, _QUERY_DEV_CAP_BMME_FLAGS_OFFSET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_MLX4_GET
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_MLX4_PUT
	ldr	x8, [x21]
Lloh20:
	adrp	x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x1, [x19]
Lloh23:
	adrp	x21, _QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET@GOTPAGE
Lloh24:
	ldr	x21, [x21, _QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w0, #0
	bl	_MLX4_GET
	ldr	x0, [x19]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_MLX4_PUT
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CMD_QUERY_DEV_CAP,4,2     ; @MLX4_CMD_QUERY_DEV_CAP
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_QUERY_DEV_CAP_EXT_FLAGS_OFFSET,4,2 ; @QUERY_DEV_CAP_EXT_FLAGS_OFFSET
	.comm	_MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,2 ; @MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ; @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET,4,2 ; @QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET
	.comm	_QUERY_DEV_CAP_BF_OFFSET,4,2    ; @QUERY_DEV_CAP_BF_OFFSET
	.comm	_QUERY_DEV_CAP_BMME_FLAGS_OFFSET,4,2 ; @QUERY_DEV_CAP_BMME_FLAGS_OFFSET
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ; @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ; @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET,4,2 ; @QUERY_DEV_CAP_FLOW_STEERING_RANGE_EN_OFFSET
.subsections_via_symbols
