	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_oct2bridgeid
_snmp_oct2bridgeid:                     ## @snmp_oct2bridgeid
	.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
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	_SNMP_BRIDGEID_OCTETS@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_6
## %bb.3:
	movq	%rdx, %r14
	movb	$0, (%rdx)
	movsbq	(%rbx), %rax
	movq	%rax, %rcx
	shlq	$8, %rcx
	movsbq	1(%rbx), %rsi
	addq	%rcx, %rsi
	movq	_SNMP_MAX_BRIDGE_PRIORITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jle	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movsbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
	movslq	%eax, %r15
	addq	%r14, %r15
	movsbl	2(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_sprintf
	movslq	%eax, %r12
	addq	%r15, %r12
	movsbl	3(%rbx), %edx
	leaq	L_.str.3(%rip), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movslq	%eax, %r13
	addq	%r12, %r13
	movsbl	4(%rbx), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movslq	%eax, %r12
	addq	%r13, %r12
	movsbl	5(%rbx), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movslq	%eax, %r13
	addq	%r12, %r13
	movsbl	6(%rbx), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movsbl	7(%rbx), %edx
	movq	%r15, %rsi
	callq	_sprintf
	movq	%r14, %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_BRIDGEID_OCTETS,8,3       ## @SNMP_BRIDGEID_OCTETS
	.comm	_SNMP_MAX_BRIDGE_PRIORITY,8,3   ## @SNMP_MAX_BRIDGE_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bridge priority %d"

L_.str.1:                               ## @.str.1
	.asciz	"%d."

L_.str.2:                               ## @.str.2
	.asciz	"%2.2x"

L_.str.3:                               ## @.str.3
	.asciz	":%2.2x"

	.no_dead_strip	_snmp_oct2bridgeid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_oct2bridgeid
_snmp_oct2bridgeid:                     ; @snmp_oct2bridgeid
	.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	x8, x0
	mov	x0, #0
	cbz	x2, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _SNMP_BRIDGEID_OCTETS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNMP_BRIDGEID_OCTETS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x19, x2
	strb	wzr, [x2]
	ldrsb	x8, [x20]
	ldrsb	x9, [x20, #1]
	add	x1, x9, x8, lsl #8
Lloh3:
	adrp	x9, _SNMP_MAX_BRIDGE_PRIORITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNMP_MAX_BRIDGE_PRIORITY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, x9
	b.le	LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	and	w8, w8, #0xff
	sxtb	w2, w8
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	add	x21, x19, w0, sxtw
	ldrsb	w2, [x20, #2]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldrsb	w2, [x20, #3]
Lloh12:
	adrp	x22, l_.str.3@PAGE
Lloh13:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldrsb	w2, [x20, #4]
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldrsb	w2, [x20, #5]
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x21, x21, w0, sxtw
	ldrsb	w2, [x20, #6]
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x0, x21, w0, sxtw
	ldrsb	w2, [x20, #7]
	mov	x1, x22
	bl	_sprintf
	mov	x0, x19
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_BRIDGEID_OCTETS,8,3       ; @SNMP_BRIDGEID_OCTETS
	.comm	_SNMP_MAX_BRIDGE_PRIORITY,8,3   ; @SNMP_MAX_BRIDGE_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bridge priority %d"

l_.str.1:                               ; @.str.1
	.asciz	"%d."

l_.str.2:                               ; @.str.2
	.asciz	"%2.2x"

l_.str.3:                               ; @.str.3
	.asciz	":%2.2x"

	.no_dead_strip	_snmp_oct2bridgeid
.subsections_via_symbols
