	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_config_dev_retrieval      ## -- Begin function mlx4_config_dev_retrieval
	.p2align	4, 0x90
_mlx4_config_dev_retrieval:             ## @mlx4_config_dev_retrieval
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_MLX4_DEV_CAP_FLAG2_CONFIG_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	leaq	-48(%rbp), %rsi
	callq	_mlx4_CONFIG_DEV_get
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	-48(%rbp), %rbx
	andl	$7, %ebx
	movq	_config_dev_csum_flags@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	movq	(%rdi,%rbx,8), %rax
	movq	%rax, 16(%r15)
	movl	-48(%rbp), %ebx
	shrl	$4, %ebx
	andl	$7, %ebx
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_5
## %bb.7:
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, 8(%r15)
	movl	-40(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_CONFIG_DEV,4,2 ## @MLX4_DEV_CAP_FLAG2_CONFIG_DEV
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_config_dev_csum_flags,8,3      ## @config_dev_csum_flags
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CONFIG_DEV_RX_CSUM_MODE_MASK,8,3 ## @CONFIG_DEV_RX_CSUM_MODE_MASK
	.comm	_CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET,8,3 ## @CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET
	.comm	_CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET,8,3 ## @CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_config_dev_retrieval      ; -- Begin function mlx4_config_dev_retrieval
	.p2align	2
_mlx4_config_dev_retrieval:             ; @mlx4_config_dev_retrieval
	.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
	stp	xzr, xzr, [sp]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_CONFIG_DEV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_CONFIG_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x1, sp
	bl	_mlx4_CONFIG_DEV_get
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [sp]
	and	x21, x8, #0x7
Lloh3:
	adrp	x20, _config_dev_csum_flags@GOTPAGE
Lloh4:
	ldr	x20, [x20, _config_dev_csum_flags@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_6
; %bb.3:
	ldr	x0, [x20]
	ldr	x8, [x0, x21, lsl #3]
	str	x8, [x19, #16]
	ldr	x8, [sp]
	ubfx	x21, x8, #4, #3
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [x19, #8]
	ldr	w0, [sp, #8]
	bl	_be16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG2_CONFIG_DEV,4,2 ; @MLX4_DEV_CAP_FLAG2_CONFIG_DEV
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_config_dev_csum_flags,8,3      ; @config_dev_csum_flags
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CONFIG_DEV_RX_CSUM_MODE_MASK,8,3 ; @CONFIG_DEV_RX_CSUM_MODE_MASK
	.comm	_CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET,8,3 ; @CONFIG_DEV_RX_CSUM_MODE_PORT1_BIT_OFFSET
	.comm	_CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET,8,3 ; @CONFIG_DEV_RX_CSUM_MODE_PORT2_BIT_OFFSET
.subsections_via_symbols
