	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hss_hdlc_attach
_hss_hdlc_attach:                       ## @hss_hdlc_attach
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_dev_to_port
	movq	_ENCODING_NRZ@GOTPCREL(%rip), %rcx
	cmpw	%bx, (%rcx)
	jne	LBB0_4
## %bb.1:
	movzwl	%r14w, %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rax)
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_PKT_HDLC_CRC_32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENCODING_NRZ,2,1               ## @ENCODING_NRZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PKT_HDLC_CRC_32,4,2            ## @PKT_HDLC_CRC_32
	.no_dead_strip	_hss_hdlc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hss_hdlc_attach
_hss_hdlc_attach:                       ; @hss_hdlc_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_dev_to_port
Lloh0:
	adrp	x9, _ENCODING_NRZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENCODING_NRZ@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_4
; %bb.1:
	mov	x8, x0
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #129
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	str	wzr, [x8]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
Lloh5:
	adrp	x9, _PKT_HDLC_CRC_32@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PKT_HDLC_CRC_32@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENCODING_NRZ,2,1               ; @ENCODING_NRZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PKT_HDLC_CRC_32,4,2            ; @PKT_HDLC_CRC_32
	.no_dead_strip	_hss_hdlc_attach
.subsections_via_symbols
