	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_add_bridge                  ## -- Begin function br_add_bridge
	.p2align	4, 0x90
_br_add_bridge:                         ## @br_add_bridge
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_new_bridge_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	(%r14), %edi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_dev_alloc_name
	testl	%eax, %eax
	js	LBB0_4
LBB0_6:
	movq	_br_type@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_SET_NETDEV_DEVTYPE
	movq	%r14, %rdi
	callq	_register_netdevice
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	%r14, %rdi
	callq	_br_sysfs_addbr
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_unregister_netdevice
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_10:
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_br_type,4,2                    ## @br_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_add_bridge                  ; -- Begin function br_add_bridge
	.p2align	2
_br_add_bridge:                         ; @br_add_bridge
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_new_bridge_dev
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_rtnl_lock
	ldr	w0, [x19]
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_dev_alloc_name
	tbnz	w0, #31, LBB0_7
LBB0_3:
Lloh0:
	adrp	x1, _br_type@GOTPAGE
Lloh1:
	ldr	x1, [x1, _br_type@GOTPAGEOFF]
	mov	x0, x19
	bl	_SET_NETDEV_DEVTYPE
	mov	x0, x19
	bl	_register_netdevice
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_br_sysfs_addbr
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_unregister_netdevice
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_free_netdev
LBB0_9:
	bl	_rtnl_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_br_type,4,2                    ; @br_type
.subsections_via_symbols
