	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_ctrl
_write_ctrl:                            ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdx
	addq	$65, %rdx
	movl	12(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_debugl1
	movq	24(%rbx), %rdi
LBB0_2:
	movq	8(%rdi), %rax
	movq	_AVM_FRITZ_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.9:
	movq	16(%rbx), %rsi
	movq	_HDLC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	12(%rbx), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WriteHDLCPCI                   ## TAILCALL
LBB0_3:
	testb	$4, %r14b
	jne	LBB0_4
## %bb.5:
	testb	$2, %r14b
	jne	LBB0_6
LBB0_7:
	testb	$1, %r14b
	jne	LBB0_10
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rsi
	movq	_HDLC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$2, %rdx
	movl	8(%rbx), %ecx
	callq	_WriteHDLCPnP
	testb	$2, %r14b
	je	LBB0_7
LBB0_6:
	movq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	movq	_HDLC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movl	4(%rbx), %ecx
	callq	_WriteHDLCPnP
	testb	$1, %r14b
	je	LBB0_8
LBB0_10:
	movq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	movq	_HDLC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rbx), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WriteHDLCPnP                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdlc %c wr%x ctrl %x"

	.comm	_AVM_FRITZ_PCI,8,3              ## @AVM_FRITZ_PCI
	.comm	_HDLC_STATUS,8,3                ## @HDLC_STATUS
	.no_dead_strip	_write_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_ctrl
_write_ctrl:                            ; @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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	add	x2, x8, #65
	ldr	w4, [x19, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_debugl1
	ldr	x0, [x19, #24]
LBB0_2:
	ldr	x8, [x0, #8]
Lloh5:
	adrp	x9, _AVM_FRITZ_PCI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AVM_FRITZ_PCI@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [x19, #16]
Lloh8:
	adrp	x8, _HDLC_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDLC_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	ldr	w3, [x19, #12]
	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	_WriteHDLCPCI
LBB0_4:
Lloh11:
	adrp	x21, _HDLC_STATUS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HDLC_STATUS@GOTPAGEOFF]
	tbnz	w20, #2, LBB0_8
; %bb.5:
	tbnz	w20, #1, LBB0_9
LBB0_6:
	tbnz	w20, #0, LBB0_10
LBB0_7:
	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
	ret
LBB0_8:
	ldr	x1, [x19, #16]
	ldr	x8, [x21]
	add	x2, x8, #2
	ldr	w3, [x19, #8]
	bl	_WriteHDLCPnP
	tbz	w20, #1, LBB0_6
LBB0_9:
	ldp	x1, x0, [x19, #16]
	ldr	x8, [x21]
	add	x2, x8, #1
	ldr	w3, [x19, #4]
	bl	_WriteHDLCPnP
	tbz	w20, #0, LBB0_7
LBB0_10:
	ldp	x1, x0, [x19, #16]
	ldr	x2, [x21]
	ldr	w3, [x19]
	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	_WriteHDLCPnP
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdlc %c wr%x ctrl %x"

	.comm	_AVM_FRITZ_PCI,8,3              ; @AVM_FRITZ_PCI
	.comm	_HDLC_STATUS,8,3                ; @HDLC_STATUS
	.no_dead_strip	_write_ctrl
.subsections_via_symbols
