	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netdev_set_master              ## -- Begin function netdev_set_master
	.p2align	4, 0x90
_netdev_set_master:                     ## @netdev_set_master
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	callq	_synchronize_net
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_dev_put
LBB0_5:
	movq	_IFF_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	_dev_hold
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
	callq	_synchronize_net
	movq	_IFF_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	_RTM_NEWLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IFF_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_rtmsg_ifinfo
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IFF_SLAVE,4,2                  ## @IFF_SLAVE
	.comm	_RTM_NEWLINK,4,2                ## @RTM_NEWLINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netdev_set_master              ; -- Begin function netdev_set_master
	.p2align	2
_netdev_set_master:                     ; @netdev_set_master
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_ASSERT_RTNL
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	str	xzr, [x19, #8]
	bl	_synchronize_net
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_dev_put
LBB0_5:
Lloh3:
	adrp	x8, _IFF_SLAVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFF_SLAVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_dev_hold
	str	x21, [x19, #8]
	bl	_synchronize_net
Lloh6:
	adrp	x8, _IFF_SLAVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFF_SLAVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x19]
Lloh9:
	adrp	x8, _RTM_NEWLINK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTM_NEWLINK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IFF_SLAVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFF_SLAVE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_rtmsg_ifinfo
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IFF_SLAVE,4,2                  ; @IFF_SLAVE
	.comm	_RTM_NEWLINK,4,2                ; @RTM_NEWLINK
.subsections_via_symbols
