	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_port_set_path_cost      ## -- Begin function bridge_port_set_path_cost
	.p2align	4, 0x90
_bridge_port_set_path_cost:             ## @bridge_port_set_path_cost
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SNMP_PORT_MIN_PATHCOST@GOTPCREL(%rip), %rcx
	movl	$-2, %eax
	cmpq	%rdx, (%rcx)
	jg	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	movq	_SNMP_PORT_PATHCOST_OBSOLETE@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jl	LBB0_5
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	$16, -40(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	(%r14), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%rbx, -56(%rbp)
	movq	_BRDGSIFCOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCSDRVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_syslog
	movl	$-1, %eax
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_PORT_MIN_PATHCOST,8,3     ## @SNMP_PORT_MIN_PATHCOST
	.comm	_SNMP_PORT_PATHCOST_OBSOLETE,8,3 ## @SNMP_PORT_PATHCOST_OBSOLETE
	.comm	_BRDGSIFCOST,4,2                ## @BRDGSIFCOST
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCSDRVSPEC,4,2               ## @SIOCSDRVSPEC
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set member %s param: ioctl(BRDGSIFCOST) failed: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_port_set_path_cost      ; -- Begin function bridge_port_set_path_cost
	.p2align	2
_bridge_port_set_path_cost:             ; @bridge_port_set_path_cost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SNMP_PORT_MIN_PATHCOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_PORT_MIN_PATHCOST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SNMP_PORT_PATHCOST_OBSOLETE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNMP_PORT_PATHCOST_OBSOLETE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #8, le
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-2
	b	LBB0_5
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x1, x0
	mov	w2, #4
	bl	_strlcpy
	mov	w8, #16
	str	w8, [sp, #24]
	add	x8, sp, #8
	str	x8, [sp, #32]
	ldr	x1, [x19]
	mov	w2, #4
	bl	_strlcpy
	str	x20, [sp, #8]
Lloh6:
	adrp	x8, _BRDGSIFCOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRDGSIFCOST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh9:
	adrp	x8, _sock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sock@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _SIOCSDRVSPEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOCSDRVSPEC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	x19, [x19]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_syslog
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_PORT_MIN_PATHCOST,8,3     ; @SNMP_PORT_MIN_PATHCOST
	.comm	_SNMP_PORT_PATHCOST_OBSOLETE,8,3 ; @SNMP_PORT_PATHCOST_OBSOLETE
	.comm	_BRDGSIFCOST,4,2                ; @BRDGSIFCOST
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCSDRVSPEC,4,2               ; @SIOCSDRVSPEC
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set member %s param: ioctl(BRDGSIFCOST) failed: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
