	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_init_devlog_params          ## -- Begin function t4_init_devlog_params
	.p2align	4, 0x90
_t4_init_devlog_params:                 ## @t4_init_devlog_params
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_PCIE_FW_PF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCIE_FW_PF_DEVLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PCIE_FW_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_t4_read_reg
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PCIE_FW_PF_DEVLOG_MEMTYPE_G
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	callq	_PCIE_FW_PF_DEVLOG_ADDR16_G
	shll	$4, %eax
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_PCIE_FW_PF_DEVLOG_NENTRIES128_G
                                        ## kill: def $eax killed $eax def $rax
	shll	$9, %eax
	addl	$512, %eax                      ## imm = 0x200
LBB0_4:
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_FW_DEVLOG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-48(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movl	(%r15), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$24, %ecx
	movq	%r14, %r8
	callq	_t4_wr_mbox
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	movq	%rax, %rbx
	movl	%ebx, %edi
	callq	_FW_DEVLOG_CMD_MEMTYPE_DEVLOG_G
	movl	%eax, 12(%r15)
	movl	%ebx, %edi
	callq	_FW_DEVLOG_CMD_MEMADDR16_DEVLOG_G
	shll	$4, %eax
	movl	%eax, 4(%r15)
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_FW_PF_A,4,2               ## @PCIE_FW_PF_A
	.comm	_PCIE_FW_PF_DEVLOG,4,2          ## @PCIE_FW_PF_DEVLOG
	.comm	_FW_DEVLOG_CMD,4,2              ## @FW_DEVLOG_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_init_devlog_params          ; -- Begin function t4_init_devlog_params
	.p2align	2
_t4_init_devlog_params:                 ; @t4_init_devlog_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _PCIE_FW_PF_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_FW_PF_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PCIE_FW_PF_DEVLOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIE_FW_PF_DEVLOG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PCIE_FW_REG
	mov	x1, x0
	mov	x0, x19
	bl	_t4_read_reg
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_PCIE_FW_PF_DEVLOG_MEMTYPE_G
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_PCIE_FW_PF_DEVLOG_ADDR16_G
	lsl	w8, w0, #4
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_PCIE_FW_PF_DEVLOG_NENTRIES128_G
	lsl	w8, w0, #9
	add	w8, w8, #512
LBB0_2:
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_3:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh6:
	adrp	x8, _FW_DEVLOG_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_DEVLOG_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh9:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh12:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	str	x0, [sp, #16]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #32]
	ldr	w1, [x19]
	add	x2, sp, #24
	add	x4, sp, #24
	mov	x0, x19
	mov	w3, #24
	bl	_t4_wr_mbox
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w0, [sp, #28]
	bl	_be32_to_cpu
	mov	x20, x0
	bl	_FW_DEVLOG_CMD_MEMTYPE_DEVLOG_G
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_FW_DEVLOG_CMD_MEMADDR16_DEVLOG_G
	lsl	w8, w0, #4
	str	w8, [x19, #4]
	ldr	w0, [sp, #24]
	bl	_be32_to_cpu
	mov	x8, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_FW_PF_A,4,2               ; @PCIE_FW_PF_A
	.comm	_PCIE_FW_PF_DEVLOG,4,2          ; @PCIE_FW_PF_DEVLOG
	.comm	_FW_DEVLOG_CMD,4,2              ; @FW_DEVLOG_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
.subsections_via_symbols
