	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_update_port_info          ## -- Begin function t4vf_update_port_info
	.p2align	4, 0x90
_t4vf_update_port_info:                 ## @t4vf_update_port_info
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	(%rax), %r12d
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_FW_PORT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %ebx
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_READ_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	8(%r15), %edi
	callq	_FW_PORT_CMD_PORTID_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movq	_FW_CAPS16@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_1
## %bb.2:
	movq	_FW_PORT_ACTION_GET_PORT_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FW_PORT_ACTION_GET_PORT_INFO32@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_FW_PORT_CMD_ACTION_V
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_FW_LEN16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	(%r15), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	movq	%r14, %rcx
	callq	_t4vf_wr_mbox
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_t4vf_handle_get_port_info
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PORT_CMD,4,2                ## @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
	.comm	_FW_CAPS16,4,2                  ## @FW_CAPS16
	.comm	_FW_PORT_ACTION_GET_PORT_INFO,4,2 ## @FW_PORT_ACTION_GET_PORT_INFO
	.comm	_FW_PORT_ACTION_GET_PORT_INFO32,4,2 ## @FW_PORT_ACTION_GET_PORT_INFO32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_update_port_info          ; -- Begin function t4vf_update_port_info
	.p2align	2
_t4vf_update_port_info:                 ; @t4vf_update_port_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w20, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _FW_PORT_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PORT_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh3:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	w0, [x19, #8]
	bl	_FW_PORT_CMD_PORTID_V
	orr	w0, w21, w0
	bl	_cpu_to_be32
	str	x0, [sp, #8]
Lloh9:
	adrp	x8, _FW_CAPS16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_CAPS16@GOTPAGEOFF]
Lloh11:
	adrp	x9, _FW_PORT_ACTION_GET_PORT_INFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FW_PORT_ACTION_GET_PORT_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _FW_PORT_ACTION_GET_PORT_INFO32@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FW_PORT_ACTION_GET_PORT_INFO32@GOTPAGEOFF]
	cmp	w20, w8
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_FW_PORT_CMD_ACTION_V
	mov	x20, x0
	ldp	x0, x1, [sp]
	bl	_FW_LEN16
	orr	w0, w0, w20
	bl	_cpu_to_be32
	str	x0, [sp]
	ldr	x0, [x19]
	mov	x1, sp
	mov	x3, sp
	mov	w2, #16
	bl	_t4vf_wr_mbox
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	bl	_t4vf_handle_get_port_info
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PORT_CMD,4,2                ; @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
	.comm	_FW_CAPS16,4,2                  ; @FW_CAPS16
	.comm	_FW_PORT_ACTION_GET_PORT_INFO,4,2 ; @FW_PORT_ACTION_GET_PORT_INFO
	.comm	_FW_PORT_ACTION_GET_PORT_INFO32,4,2 ; @FW_PORT_ACTION_GET_PORT_INFO32
.subsections_via_symbols
