	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_bport_id2oct
_snmp_bport_id2oct:                     ## @snmp_bport_id2oct
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SNMP_BPORT_OCTETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snmp_suboid_append
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movl	$0, (%r15)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	_SNMP_MAX_BPORT_PRIORITY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_7
## %bb.2:
	cmpl	$0, (%r15)
	jne	LBB0_7
## %bb.3:
	movq	-40(%rbp), %rcx
	cmpb	$46, (%rcx)
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snmp_suboid_append
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movl	(%r15), %r12d
	movl	$0, (%r15)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_strtoul
	movl	%r12d, (%r15)
	cmpl	$256, %eax                      ## imm = 0x100
	jl	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movl	%r12d, (%r15)
	leaq	L_.str(%rip), %rdi
LBB0_8:
	movl	%eax, %esi
	callq	_warnx
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snmp_suboid_append
	testq	%rax, %rax
	js	LBB0_9
## %bb.13:
	movq	-40(%rbp), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_BPORT_OCTETS,8,3          ## @SNMP_BPORT_OCTETS
	.comm	_errno,4,2                      ## @errno
	.comm	_SNMP_MAX_BPORT_PRIORITY,4,2    ## @SNMP_MAX_BPORT_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad bridge port priority value %d"

L_.str.1:                               ## @.str.1
	.asciz	"Bad port number - %d"

	.no_dead_strip	_snmp_bport_id2oct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_bport_id2oct
_snmp_bport_id2oct:                     ; @snmp_bport_id2oct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SNMP_BPORT_OCTETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_BPORT_OCTETS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snmp_suboid_append
	tbnz	x0, #63, LBB0_8
; %bb.1:
Lloh3:
	adrp	x21, _errno@GOTPAGE
Lloh4:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	str	wzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	mov	x1, x0
Lloh5:
	adrp	x8, _SNMP_MAX_BPORT_PRIORITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNMP_MAX_BPORT_PRIORITY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w0, w8
	ccmp	w9, #0, #0, le
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #46
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_snmp_suboid_append
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w22, [x21]
	str	wzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #16
	bl	_strtoul
	mov	x1, x0
	str	w22, [x21]
	cmp	w0, #256
	b.lt	LBB0_10
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	str	w22, [x21]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_warnx
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
LBB0_10:
	mov	x0, x19
	bl	_snmp_suboid_append
	ldr	x8, [sp, #8]
	cmp	x0, #0
	csel	x0, xzr, x8, lt
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_BPORT_OCTETS,8,3          ; @SNMP_BPORT_OCTETS
	.comm	_errno,4,2                      ; @errno
	.comm	_SNMP_MAX_BPORT_PRIORITY,4,2    ; @SNMP_MAX_BPORT_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad bridge port priority value %d"

l_.str.1:                               ; @.str.1
	.asciz	"Bad port number - %d"

	.no_dead_strip	_snmp_bport_id2oct
.subsections_via_symbols
