	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function br_rtm_setlink
_br_rtm_setlink:                        ## @br_rtm_setlink
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_sock_net
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nlmsg_len
	cmpl	$15, %eax
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_nlmsg_data
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_AF_BRIDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_IFLA_PROTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_nlmsg_find_attr
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nla_len
	cmpl	$7, %eax
	jbe	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	callq	_nla_get_u8
	movq	%rax, %r14
	movq	_BR_STATE_BLOCKING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jg	LBB0_1
## %bb.8:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	___dev_get_by_index
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.11:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_BR_KERNEL_STP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_13:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_17
LBB0_16:
	movq	_ENETDOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_17:
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_br_log_state
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_BRIDGE,8,3                  ## @AF_BRIDGE
	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_IFLA_PROTINFO,4,2              ## @IFLA_PROTINFO
	.comm	_BR_STATE_BLOCKING,8,3          ## @BR_STATE_BLOCKING
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BR_KERNEL_STP,8,3              ## @BR_KERNEL_STP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BR_STATE_DISABLED,8,3          ## @BR_STATE_DISABLED
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_br_rtm_setlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function br_rtm_setlink
_br_rtm_setlink:                        ; @br_rtm_setlink
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	w0, [x0]
	bl	_sock_net
	mov	x19, x0
	mov	x0, x20
	bl	_nlmsg_len
	cmp	w0, #15
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x0, x20
	bl	_nlmsg_data
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _AF_BRIDGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF_BRIDGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x8, _IFLA_PROTINFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFLA_PROTINFO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #16
	bl	_nlmsg_find_attr
	cbz	x0, LBB0_1
; %bb.4:
	mov	x20, x0
	bl	_nla_len
	cmp	w0, #7
	b.ls	LBB0_1
; %bb.5:
	mov	x0, x20
	bl	_nla_get_u8
Lloh8:
	adrp	x8, _BR_STATE_BLOCKING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BR_STATE_BLOCKING@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_1
; %bb.6:
	mov	x20, x0
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	___dev_get_by_index
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
	ldr	x19, [x0]
	cbz	x19, LBB0_1
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _BR_KERNEL_STP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BR_KERNEL_STP@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_18
; %bb.16:
Lloh20:
	adrp	x8, _BR_STATE_DISABLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BR_STATE_DISABLED@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_18
LBB0_17:
Lloh23:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_11
LBB0_18:
	str	x20, [x19]
	mov	x0, x19
	bl	_br_log_state
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_BRIDGE,8,3                  ; @AF_BRIDGE
	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_IFLA_PROTINFO,4,2              ; @IFLA_PROTINFO
	.comm	_BR_STATE_BLOCKING,8,3          ; @BR_STATE_BLOCKING
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BR_KERNEL_STP,8,3              ; @BR_KERNEL_STP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BR_STATE_DISABLED,8,3          ; @BR_STATE_DISABLED
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_br_rtm_setlink
.subsections_via_symbols
