	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_ctl_update_cam
_dfx_ctl_update_cam:                    ## @dfx_ctl_update_cam
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	movq	_PI_CMD_REQ_K_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movq	_PI_CMD_K_ADDR_FILTER_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	(%rcx), %r15
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_PI_CMD_ADDR_FILTER_K_SIZE@GOTPCREL(%rip), %r12
	movq	_FDDI_K_ALEN@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r12), %ebx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edx
	movl	%edx, %eax
	imull	%ebx, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	_memcpy
	addq	$4, %r15
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	16(%r14), %rcx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	movq	_PI_CMD_ADDR_FILTER_K_SIZE@GOTPCREL(%rip), %r12
	movq	_FDDI_K_ALEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ebx, %eax
	cmpl	(%r12), %eax
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edx
	movl	%edx, %eax
	imull	%ebx, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_memcpy
	addq	$4, %r15
	movq	16(%r14), %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_11:
	movq	%r14, %rdi
	callq	_dfx_hw_dma_cmd_req
	movq	%rax, %rcx
	movq	_DFX_K_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_13
## %bb.12:
	movq	_DFX_K_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PI_CMD_REQ_K_SIZE_MAX,4,2      ## @PI_CMD_REQ_K_SIZE_MAX
	.comm	_PI_CMD_K_ADDR_FILTER_SET,4,2   ## @PI_CMD_K_ADDR_FILTER_SET
	.comm	_PI_CMD_ADDR_FILTER_K_SIZE,4,2  ## @PI_CMD_ADDR_FILTER_K_SIZE
	.comm	_FDDI_K_ALEN,4,2                ## @FDDI_K_ALEN
	.comm	_DFX_K_SUCCESS,8,3              ## @DFX_K_SUCCESS
	.comm	_DFX_K_FAILURE,4,2              ## @DFX_K_FAILURE
	.no_dead_strip	_dfx_ctl_update_cam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_ctl_update_cam
_dfx_ctl_update_cam:                    ; @dfx_ctl_update_cam
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0, #32]
Lloh0:
	adrp	x8, _PI_CMD_REQ_K_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PI_CMD_REQ_K_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
Lloh3:
	adrp	x8, _PI_CMD_K_ADDR_FILTER_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PI_CMD_K_ADDR_FILTER_SET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
	str	w8, [x9, #8]
	ldr	x20, [x9]
	ldr	w8, [x19]
Lloh6:
	adrp	x21, _PI_CMD_ADDR_FILTER_K_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PI_CMD_ADDR_FILTER_K_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x22, _FDDI_K_ALEN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FDDI_K_ALEN@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	cmp	w23, w9
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x22]
	mul	w9, w2, w23
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	bl	_memcpy
	add	x20, x20, #4
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.6:
	mov	w23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21]
	add	w8, w8, w23
	cmp	w8, w10
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x22]
	mul	w9, w2, w23
	add	x1, x8, w9, sxtw #2
	mov	x0, x20
	bl	_memcpy
	add	x20, x20, #4
	ldr	x9, [x19, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	cmp	w23, w9
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	b	LBB0_7
LBB0_11:
	mov	x0, x19
	bl	_dfx_hw_dma_cmd_req
Lloh10:
	adrp	x8, _DFX_K_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DFX_K_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _DFX_K_FAILURE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DFX_K_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w0, w8, w9, eq
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PI_CMD_REQ_K_SIZE_MAX,4,2      ; @PI_CMD_REQ_K_SIZE_MAX
	.comm	_PI_CMD_K_ADDR_FILTER_SET,4,2   ; @PI_CMD_K_ADDR_FILTER_SET
	.comm	_PI_CMD_ADDR_FILTER_K_SIZE,4,2  ; @PI_CMD_ADDR_FILTER_K_SIZE
	.comm	_FDDI_K_ALEN,4,2                ; @FDDI_K_ALEN
	.comm	_DFX_K_SUCCESS,8,3              ; @DFX_K_SUCCESS
	.comm	_DFX_K_FAILURE,4,2              ; @DFX_K_FAILURE
	.no_dead_strip	_dfx_ctl_update_cam
.subsections_via_symbols
