	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapb_send_control              ## -- Begin function lapb_send_control
	.p2align	4, 0x90
_lapb_send_control:                     ## @lapb_send_control
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_LAPB_HEADER_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	$3, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	(%r14), %rsi
	incq	%rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	_LAPB_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.2:
	movq	_LAPB_U@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_skb_put
	movb	%r12b, (%rax)
	testl	%r13d, %r13d
	movq	_LAPB_SPF@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%r13d, %ecx
	orl	%r12d, %ecx
	movb	%cl, (%rax)
	jmp	LBB0_8
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_skb_put
	movb	%r12b, (%rax)
	testl	%r13d, %r13d
	movq	_LAPB_SPF@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%r13d, %ecx
	orl	%r12d, %ecx
	movb	%cl, (%rax)
	movq	_LAPB_U@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r12d
	movq	_LAPB_S@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_9
## %bb.6:
	movl	4(%r15), %esi
	shll	$5, %esi
	orl	%ecx, %esi
	movb	%sil, (%rax)
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skb_put
	movb	%r12b, (%rax)
	movb	4(%r15), %cl
	addb	%cl, %cl
	testl	%r13d, %r13d
	movq	_LAPB_EPF@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovel	%r13d, %edx
	orb	%cl, %dl
	movb	%dl, 1(%rax)
LBB0_8:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lapb_transmit_buffer           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LAPB_HEADER_LEN,8,3            ## @LAPB_HEADER_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_LAPB_EXTENDED,4,2              ## @LAPB_EXTENDED
	.comm	_LAPB_U,4,2                     ## @LAPB_U
	.comm	_LAPB_SPF,1,0                   ## @LAPB_SPF
	.comm	_LAPB_EPF,1,0                   ## @LAPB_EPF
	.comm	_LAPB_S,4,2                     ## @LAPB_S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lapb_send_control              ; -- Begin function lapb_send_control
	.p2align	2
_lapb_send_control:                     ; @lapb_send_control
	.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, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _LAPB_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LAPB_HEADER_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, #3
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x24]
	add	x1, x8, #1
	bl	_skb_reserve
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _LAPB_EXTENDED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LAPB_EXTENDED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _LAPB_U@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LAPB_U@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x0, x21
	bics	wzr, w8, w22
	b.ne	LBB0_8
; %bb.3:
	mov	w1, #1
	bl	_skb_put
Lloh11:
	adrp	x8, _LAPB_SPF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LAPB_SPF@GOTPAGEOFF]
	strb	w22, [x0]
	ldrb	w8, [x8]
	cmp	w23, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w22
	b	LBB0_7
LBB0_4:
	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
LBB0_5:
	mov	x0, x21
	mov	w1, #1
	bl	_skb_put
	strb	w22, [x0]
Lloh13:
	adrp	x8, _LAPB_SPF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LAPB_SPF@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w23, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w22
	strb	w8, [x0]
Lloh15:
	adrp	x9, _LAPB_U@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LAPB_U@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w22
Lloh18:
	adrp	x10, _LAPB_S@GOTPAGE
Lloh19:
	ldr	x10, [x10, _LAPB_S@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.6:
	ldr	w9, [x20, #4]
	orr	w8, w8, w9, lsl #5
LBB0_7:
	strb	w8, [x0]
	b	LBB0_9
LBB0_8:
	mov	w1, #2
	bl	_skb_put
	strb	w22, [x0]
Lloh21:
	adrp	x8, _LAPB_EPF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LAPB_EPF@GOTPAGEOFF]
	ldrb	w9, [x20, #4]
	ldrb	w8, [x8]
	cmp	w23, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w9, lsl #1
	strb	w8, [x0, #1]
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	b	_lapb_transmit_buffer
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LAPB_HEADER_LEN,8,3            ; @LAPB_HEADER_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_LAPB_EXTENDED,4,2              ; @LAPB_EXTENDED
	.comm	_LAPB_U,4,2                     ; @LAPB_U
	.comm	_LAPB_SPF,1,0                   ; @LAPB_SPF
	.comm	_LAPB_EPF,1,0                   ; @LAPB_EPF
	.comm	_LAPB_S,4,2                     ; @LAPB_S
.subsections_via_symbols
