	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_set_if_up               ## -- Begin function bridge_set_if_up
	.p2align	4, 0x90
_bridge_set_if_up:                      ## @bridge_set_if_up
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bzero
	movl	-32(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_sock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movzwl	-40(%rbp), %eax
	movl	-36(%rbp), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	notl	%eax
	andl	%ecx, %eax
	cmpl	$1, %r15d
	cmovel	%edx, %eax
	movzwl	%ax, %ecx
	movl	%ecx, -40(%rbp)
	sarl	$16, %eax
	movl	%eax, -36(%rbp)
	movl	(%rbx), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %r14
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_syslog
	movl	$-1, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set bridge up: ioctl(SIOCGIFFLAGS) failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
L_.str.1:                               ## @.str.1
	.asciz	"set bridge up: ioctl(SIOCSIFFLAGS) failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_set_if_up               ; -- Begin function bridge_set_if_up
	.p2align	2
_bridge_set_if_up:                      ; @bridge_set_if_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #12
	bl	_bzero
	ldr	w0, [sp, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x20, _sock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldrh	w8, [sp]
	ldr	w9, [sp, #4]
	bfi	w8, w9, #16, #16
Lloh5:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w19, #1
	csel	w8, w10, w8, eq
	and	w9, w8, #0xffff
	asr	w8, w8, #16
	stp	w9, w8, [sp]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x19, l_.str.1@PAGE
Lloh14:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_5:
Lloh15:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_syslog
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set bridge up: ioctl(SIOCGIFFLAGS) failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
l_.str.1:                               ; @.str.1
	.asciz	"set bridge up: ioctl(SIOCSIFFLAGS) failed: %s"

.subsections_via_symbols
