	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fcpci_write_ctrl
___fcpci_write_ctrl:                    ## @__fcpci_write_ctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	8(%rdi), %rdx
	testq	%rdx, %rdx
	jne	LBB0_1
## %bb.2:
	movq	_AVM_IDX_HDLC_1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AVM_IDX_HDLC_2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	addq	$65, %rdx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$64, %edi
	callq	_DBG
	movq	_AVM_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%r14d, %edi
	callq	_outl
	movq	_AVM_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	(%rbx), %edi
	movq	_HDLC_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_IDX_HDLC_2,4,2             ## @AVM_IDX_HDLC_2
	.comm	_AVM_IDX_HDLC_1,4,2             ## @AVM_IDX_HDLC_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdlc %c wr%x ctrl %x"

	.comm	_AVM_INDEX,8,3                  ## @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ## @AVM_DATA
	.comm	_HDLC_CTRL,8,3                  ## @HDLC_CTRL
	.no_dead_strip	___fcpci_write_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fcpci_write_ctrl
___fcpci_write_ctrl:                    ; @__fcpci_write_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x3, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AVM_IDX_HDLC_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVM_IDX_HDLC_2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AVM_IDX_HDLC_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVM_IDX_HDLC_1@GOTPAGEOFF]
	ldp	x10, x21, [x0, #8]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	add	x2, x10, #65
	ldr	w4, [x0]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #64
	bl	_DBG
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _AVM_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVM_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outl
	ldr	w0, [x19]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _AVM_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AVM_DATA@GOTPAGEOFF]
Lloh11:
	adrp	x10, _HDLC_CTRL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDLC_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_outl
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_IDX_HDLC_2,4,2             ; @AVM_IDX_HDLC_2
	.comm	_AVM_IDX_HDLC_1,4,2             ; @AVM_IDX_HDLC_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdlc %c wr%x ctrl %x"

	.comm	_AVM_INDEX,8,3                  ; @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ; @AVM_DATA
	.comm	_HDLC_CTRL,8,3                  ; @HDLC_CTRL
	.no_dead_strip	___fcpci_write_ctrl
.subsections_via_symbols
