	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_create                  ## -- Begin function bridge_create
	.p2align	4, 0x90
_bridge_create:                         ## @bridge_create
	.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
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	-32(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_sock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SIOCIFCREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-32(%rbp), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	movl	(%r15), %edi
	movq	_SIOCSIFNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_syslog
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_7
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_7:
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCIFCREATE,4,2               ## @SIOCIFCREATE
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create bridge: ioctl(SIOCIFCREATE) failed: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"create bridge: strdup() failed"

	.comm	_SIOCSIFNAME,4,2                ## @SIOCSIFNAME
L_.str.2:                               ## @.str.2
	.asciz	"create bridge: ioctl(SIOCSIFNAME) failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_create                  ; -- Begin function bridge_create
	.p2align	2
_bridge_create:                         ; @bridge_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	ldr	w0, [sp, #24]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x20, _sock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SIOCIFCREATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCIFCREATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_strdup
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	str	x0, [sp, #16]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _SIOCSIFNAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIOCSIFNAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_7
; %bb.4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_syslog
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_syslog
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCIFCREATE,4,2               ; @SIOCIFCREATE
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create bridge: ioctl(SIOCIFCREATE) failed: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"create bridge: strdup() failed"

	.comm	_SIOCSIFNAME,4,2                ; @SIOCSIFNAME
l_.str.2:                               ; @.str.2
	.asciz	"create bridge: ioctl(SIOCSIFNAME) failed: %s"

.subsections_via_symbols
