	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_discover_caps
_ice_aq_discover_caps:                  ## @ice_aq_discover_caps
	.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	%r9, %r13
	movl	%r8d, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_ice_aqc_opc_list_func_caps@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ice_aqc_opc_list_dev_caps@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_ice_fill_dflt_direct_cmd_desc
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r8
	callq	_ice_aq_send_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r13d
	movq	(%r15), %rax
	movq	_ICE_AQ_RC_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_4:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_ice_parse_caps
	xorl	%r13d, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ice_aqc_opc_list_func_caps,4,2 ## @ice_aqc_opc_list_func_caps
	.comm	_ice_aqc_opc_list_dev_caps,4,2  ## @ice_aqc_opc_list_dev_caps
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_AQ_RC_ENOMEM,8,3           ## @ICE_AQ_RC_ENOMEM
	.no_dead_strip	_ice_aq_discover_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_discover_caps
_ice_aq_discover_caps:                  ; @ice_aq_discover_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _ice_aqc_opc_list_func_caps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ice_aqc_opc_list_func_caps@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ice_aqc_opc_list_dev_caps@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ice_aqc_opc_list_dev_caps@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w4
	ccmp	w9, w4, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x23, x5
	mov	x20, x4
	mov	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	x1, x4
	bl	_ice_fill_dflt_direct_cmd_desc
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x23
	bl	_ice_aq_send_cmd
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _ICE_AQ_RC_ENOMEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_AQ_RC_ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	str	w0, [x19]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	_ice_parse_caps
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ice_aqc_opc_list_func_caps,4,2 ; @ice_aqc_opc_list_func_caps
	.comm	_ice_aqc_opc_list_dev_caps,4,2  ; @ice_aqc_opc_list_dev_caps
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_AQ_RC_ENOMEM,8,3           ; @ICE_AQ_RC_ENOMEM
	.no_dead_strip	_ice_aq_discover_caps
.subsections_via_symbols
