	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_fw_log_cfg
_ice_get_fw_log_cfg:                    ## @ice_get_fw_log_cfg
	.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	%rdi, %rbx
	movq	_ICE_FW_LOG_DESC_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	_ice_hw_to_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_ice_aqc_opc_fw_logging_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movq	_ICE_AQ_FLAG_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	movq	_ICE_AQ_FLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_ice_aq_send_cmd
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_ICE_AQC_FW_LOG_ID_MAX@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_ICE_AQC_FW_LOG_ID_M@GOTPCREL(%rip), %r15
	movq	_ICE_AQC_FW_LOG_ID_S@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rcx, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	(%r15), %rdx
	andq	%rax, %rdx
	movzbl	(%r14), %ecx
	shrq	%cl, %rdx
	movq	(%r12), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ICE_AQC_FW_LOG_EN_M@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_ICE_AQC_FW_LOG_EN_S@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r12), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_devm_kfree
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_FW_LOG_DESC_SIZE_MAX,8,3   ## @ICE_FW_LOG_DESC_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ice_aqc_opc_fw_logging_info,4,2 ## @ice_aqc_opc_fw_logging_info
	.comm	_ICE_AQ_FLAG_BUF,4,2            ## @ICE_AQ_FLAG_BUF
	.comm	_ICE_AQ_FLAG_RD,4,2             ## @ICE_AQ_FLAG_RD
	.comm	_ICE_AQC_FW_LOG_ID_MAX,8,3      ## @ICE_AQC_FW_LOG_ID_MAX
	.comm	_ICE_AQC_FW_LOG_ID_M,8,3        ## @ICE_AQC_FW_LOG_ID_M
	.comm	_ICE_AQC_FW_LOG_ID_S,8,3        ## @ICE_AQC_FW_LOG_ID_S
	.comm	_ICE_AQC_FW_LOG_EN_M,8,3        ## @ICE_AQC_FW_LOG_EN_M
	.comm	_ICE_AQC_FW_LOG_EN_S,8,3        ## @ICE_AQC_FW_LOG_EN_S
	.no_dead_strip	_ice_get_fw_log_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_get_fw_log_cfg
_ice_get_fw_log_cfg:                    ; @ice_get_fw_log_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _ICE_FW_LOG_DESC_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_FW_LOG_DESC_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_ice_hw_to_dev
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _ice_aqc_opc_fw_logging_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ice_aqc_opc_fw_logging_info@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
Lloh9:
	adrp	x8, _ICE_AQ_FLAG_BUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQ_FLAG_BUF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _ICE_AQ_FLAG_RD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_AQ_FLAG_RD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, #0
	bl	_ice_aq_send_cmd
	mov	x21, x0
Lloh15:
	adrp	x22, _ICE_AQC_FW_LOG_ID_MAX@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ICE_AQC_FW_LOG_ID_MAX@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ice_hw_to_dev
	mov	x1, x20
	bl	_devm_kfree
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
LBB0_4:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x23, #0
Lloh20:
	adrp	x24, _ICE_AQC_FW_LOG_ID_M@GOTPAGE
Lloh21:
	ldr	x24, [x24, _ICE_AQC_FW_LOG_ID_M@GOTPAGEOFF]
Lloh22:
	adrp	x25, _ICE_AQC_FW_LOG_ID_S@GOTPAGE
Lloh23:
	ldr	x25, [x25, _ICE_AQC_FW_LOG_ID_S@GOTPAGEOFF]
Lloh24:
	adrp	x26, _ICE_AQC_FW_LOG_EN_M@GOTPAGE
Lloh25:
	ldr	x26, [x26, _ICE_AQC_FW_LOG_EN_M@GOTPAGEOFF]
Lloh26:
	adrp	x27, _ICE_AQC_FW_LOG_EN_S@GOTPAGE
Lloh27:
	ldr	x27, [x27, _ICE_AQC_FW_LOG_EN_S@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	cmp	x23, x9
	b.hs	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x23, lsl #2]
	bl	_le16_to_cpu
	ldr	x8, [x24]
	and	x8, x8, x0
	ldr	x9, [x25]
	lsr	x8, x8, x9
	ldr	x9, [x22]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x26]
	and	x9, x9, x0
	ldr	x10, [x27]
	lsr	x9, x9, x10
	ldr	x10, [x19]
	str	x9, [x10, x8, lsl #3]
	ldr	x9, [x22]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_FW_LOG_DESC_SIZE_MAX,8,3   ; @ICE_FW_LOG_DESC_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ice_aqc_opc_fw_logging_info,4,2 ; @ice_aqc_opc_fw_logging_info
	.comm	_ICE_AQ_FLAG_BUF,4,2            ; @ICE_AQ_FLAG_BUF
	.comm	_ICE_AQ_FLAG_RD,4,2             ; @ICE_AQ_FLAG_RD
	.comm	_ICE_AQC_FW_LOG_ID_MAX,8,3      ; @ICE_AQC_FW_LOG_ID_MAX
	.comm	_ICE_AQC_FW_LOG_ID_M,8,3        ; @ICE_AQC_FW_LOG_ID_M
	.comm	_ICE_AQC_FW_LOG_ID_S,8,3        ; @ICE_AQC_FW_LOG_ID_S
	.comm	_ICE_AQC_FW_LOG_EN_M,8,3        ; @ICE_AQC_FW_LOG_EN_M
	.comm	_ICE_AQC_FW_LOG_EN_S,8,3        ; @ICE_AQC_FW_LOG_EN_S
	.no_dead_strip	_ice_get_fw_log_cfg
.subsections_via_symbols
