	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c4iw_query_device
_c4iw_query_device:                     ## @c4iw_query_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_debug
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_to_c4iw_dev
	movq	%rax, %r14
	leaq	136(%r15), %rdi
	movq	40(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	movl	36(%r14), %edi
	callq	_CHELSIO_CHIP_RELEASE
	movl	%eax, 132(%r15)
	movl	32(%r14), %eax
	movl	%eax, 128(%r15)
	movl	56(%r14), %eax
	movl	%eax, 124(%r15)
	movq	_T4_PAGESIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r15)
	movq	24(%r14), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 104(%r15)
	movq	_T4_MAX_MR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r15)
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, (%r15)
	movl	4(%rax), %eax
	movl	%eax, 96(%r15)
	movl	52(%r14), %eax
	movl	%eax, 92(%r15)
	movl	%eax, 88(%r15)
	movq	_T4_MAX_SEND_SGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_T4_MAX_WRITE_SGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%rax, 80(%r15)
	movq	_T4_MAX_RECV_SGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r15)
	movq	%rax, 64(%r15)
	movl	$1, 4(%r15)
	movl	20(%r14), %eax
	movl	%eax, 56(%r15)
	movl	16(%r14), %edi
	movq	_c4iw_max_read_depth@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%rax, 40(%r15)
	movq	%rax, 48(%r15)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	48(%r14), %eax
	movl	%eax, 32(%r15)
	movq	%r14, %rdi
	callq	_c4iw_num_stags
	movl	%eax, 28(%r15)
	movq	_T4_MAX_NUM_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	cmpq	$0, (%r14)
	setne	%al
	movq	_use_dsgl@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_t4_max_fr_depth
	movl	%eax, 12(%r15)
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibdev %p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_T4_PAGESIZE_MASK,4,2           ## @T4_PAGESIZE_MASK
	.comm	_T4_MAX_MR_SIZE,4,2             ## @T4_MAX_MR_SIZE
	.comm	_T4_MAX_SEND_SGE,4,2            ## @T4_MAX_SEND_SGE
	.comm	_T4_MAX_WRITE_SGE,4,2           ## @T4_MAX_WRITE_SGE
	.comm	_T4_MAX_RECV_SGE,8,3            ## @T4_MAX_RECV_SGE
	.comm	_c4iw_max_read_depth,4,2        ## @c4iw_max_read_depth
	.comm	_T4_MAX_NUM_PD,4,2              ## @T4_MAX_NUM_PD
	.comm	_use_dsgl,8,3                   ## @use_dsgl
	.no_dead_strip	_c4iw_query_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c4iw_query_device
_c4iw_query_device:                     ; @c4iw_query_device
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
	mov	x0, x20
	bl	_to_c4iw_dev
	mov	x20, x0
	add	x0, x19, #136
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w2, #6
	bl	_memcpy
	ldr	w0, [x20, #36]
	bl	_CHELSIO_CHIP_RELEASE
	ldr	w8, [x20, #32]
	stp	w8, w0, [x19, #128]
Lloh5:
	adrp	x8, _T4_PAGESIZE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _T4_PAGESIZE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w10, w9, [x20, #52]
	stp	w8, w9, [x19, #120]
	ldr	x8, [x20, #24]
	ldp	x8, x9, [x8]
	stp	x8, x9, [x19, #104]
Lloh8:
	adrp	x8, _T4_MAX_MR_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _T4_MAX_MR_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldp	w11, w9, [x9]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	str	w11, [x19]
	stp	w9, w8, [x19, #96]
	stp	w10, w10, [x19, #88]
Lloh11:
	adrp	x8, _T4_MAX_SEND_SGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _T4_MAX_SEND_SGE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _T4_MAX_WRITE_SGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _T4_MAX_WRITE_SGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_min
Lloh17:
	adrp	x8, _T4_MAX_RECV_SGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _T4_MAX_RECV_SGE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stp	x8, x0, [x19, #72]
	str	x8, [x19, #64]
	mov	w8, #1
	str	w8, [x19, #4]
	ldp	w0, w8, [x20, #16]
	str	w8, [x19, #56]
Lloh20:
	adrp	x8, _c4iw_max_read_depth@GOTPAGE
Lloh21:
	ldr	x8, [x8, _c4iw_max_read_depth@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_min
	stp	x0, x0, [x19, #40]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x20, #48]
	str	w8, [x19, #32]
	mov	x0, x20
	bl	_c4iw_num_stags
Lloh23:
	adrp	x8, _T4_MAX_NUM_PD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _T4_MAX_NUM_PD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #24]
	str	xzr, [x19, #16]
	ldr	x8, [x20]
	cmp	x8, #0
Lloh26:
	adrp	x8, _use_dsgl@GOTPAGE
Lloh27:
	ldr	x8, [x8, _use_dsgl@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_t4_max_fr_depth
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #12]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	"ibdev %p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_T4_PAGESIZE_MASK,4,2           ; @T4_PAGESIZE_MASK
	.comm	_T4_MAX_MR_SIZE,4,2             ; @T4_MAX_MR_SIZE
	.comm	_T4_MAX_SEND_SGE,4,2            ; @T4_MAX_SEND_SGE
	.comm	_T4_MAX_WRITE_SGE,4,2           ; @T4_MAX_WRITE_SGE
	.comm	_T4_MAX_RECV_SGE,8,3            ; @T4_MAX_RECV_SGE
	.comm	_c4iw_max_read_depth,4,2        ; @c4iw_max_read_depth
	.comm	_T4_MAX_NUM_PD,4,2              ; @T4_MAX_NUM_PD
	.comm	_use_dsgl,8,3                   ; @use_dsgl
	.no_dead_strip	_c4iw_query_device
.subsections_via_symbols
