	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_req_res
_ice_aq_req_res:                        ## @ice_aq_req_res
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_ice_aqc_opc_req_res@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	$0, (%r12)
	movq	%r15, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_ice_aq_send_cmd
	movl	%eax, %ebx
	movq	_ICE_GLOBAL_CFG_LOCK_RES_ID@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	-72(%rbp), %edi
	callq	_le16_to_cpu
	movq	_ICE_AQ_RES_GLBL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	-80(%rbp), %rdi
	callq	_le32_to_cpu
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movq	_ICE_AQ_RC_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_5:
	movq	-80(%rbp), %rdi
	callq	_le32_to_cpu
	movl	%eax, (%r12)
	jmp	LBB0_13
LBB0_6:
	movl	-72(%rbp), %edi
	callq	_le16_to_cpu
	movq	_ICE_AQ_RES_GLBL_IN_PROG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	-80(%rbp), %rdi
	callq	_le32_to_cpu
	movl	%eax, (%r12)
	jmp	LBB0_11
LBB0_8:
	movl	-72(%rbp), %edi
	callq	_le16_to_cpu
	movq	_ICE_AQ_RES_GLBL_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_ICE_ERR_AQ_NO_WORK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movl	$0, (%r12)
LBB0_11:
	movq	_ICE_ERR_AQ_ERROR@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ice_aqc_opc_req_res,4,2        ## @ice_aqc_opc_req_res
	.comm	_ICE_GLOBAL_CFG_LOCK_RES_ID,4,2 ## @ICE_GLOBAL_CFG_LOCK_RES_ID
	.comm	_ICE_AQ_RES_GLBL_SUCCESS,8,3    ## @ICE_AQ_RES_GLBL_SUCCESS
	.comm	_ICE_AQ_RES_GLBL_IN_PROG,8,3    ## @ICE_AQ_RES_GLBL_IN_PROG
	.comm	_ICE_ERR_AQ_ERROR,4,2           ## @ICE_ERR_AQ_ERROR
	.comm	_ICE_AQ_RES_GLBL_DONE,8,3       ## @ICE_AQ_RES_GLBL_DONE
	.comm	_ICE_ERR_AQ_NO_WORK,4,2         ## @ICE_ERR_AQ_NO_WORK
	.comm	_ICE_AQ_RC_EBUSY,8,3            ## @ICE_AQ_RC_EBUSY
	.no_dead_strip	_ice_aq_req_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_req_res
_ice_aq_req_res:                        ; @ice_aq_req_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x5
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ice_aqc_opc_req_res@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ice_aqc_opc_req_res@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	str	wzr, [x19]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_ice_aq_send_cmd
Lloh3:
	adrp	x8, _ICE_GLOBAL_CFG_LOCK_RES_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_GLOBAL_CFG_LOCK_RES_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [sp, #16]
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _ICE_AQ_RES_GLBL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQ_RES_GLBL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	w21, #0
	b	LBB0_6
LBB0_3:
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _ICE_AQ_RC_EBUSY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICE_AQ_RC_EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
LBB0_6:
	str	w0, [x19]
	b	LBB0_14
LBB0_7:
	ldr	w0, [sp, #16]
	bl	_le16_to_cpu
Lloh12:
	adrp	x8, _ICE_AQ_RES_GLBL_IN_PROG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_AQ_RES_GLBL_IN_PROG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	str	w0, [x19]
	b	LBB0_12
LBB0_9:
	ldr	w0, [sp, #16]
	bl	_le16_to_cpu
Lloh15:
	adrp	x8, _ICE_AQ_RES_GLBL_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICE_AQ_RES_GLBL_DONE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
Lloh18:
	adrp	x8, _ICE_ERR_AQ_NO_WORK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_AQ_NO_WORK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	str	wzr, [x19]
LBB0_12:
Lloh20:
	adrp	x8, _ICE_ERR_AQ_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_ERR_AQ_ERROR@GOTPAGEOFF]
LBB0_13:
	ldr	w21, [x8]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ice_aqc_opc_req_res,4,2        ; @ice_aqc_opc_req_res
	.comm	_ICE_GLOBAL_CFG_LOCK_RES_ID,4,2 ; @ICE_GLOBAL_CFG_LOCK_RES_ID
	.comm	_ICE_AQ_RES_GLBL_SUCCESS,8,3    ; @ICE_AQ_RES_GLBL_SUCCESS
	.comm	_ICE_AQ_RES_GLBL_IN_PROG,8,3    ; @ICE_AQ_RES_GLBL_IN_PROG
	.comm	_ICE_ERR_AQ_ERROR,4,2           ; @ICE_ERR_AQ_ERROR
	.comm	_ICE_AQ_RES_GLBL_DONE,8,3       ; @ICE_AQ_RES_GLBL_DONE
	.comm	_ICE_ERR_AQ_NO_WORK,4,2         ; @ICE_ERR_AQ_NO_WORK
	.comm	_ICE_AQ_RC_EBUSY,8,3            ; @ICE_AQ_RC_EBUSY
	.no_dead_strip	_ice_aq_req_res
.subsections_via_symbols
