	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_operstate
_set_operstate:                         ## @set_operstate
	.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	%rdi, %r15
	movb	(%rdi), %r14b
	cmpb	$-127, %sil
	je	LBB0_5
## %bb.1:
	cmpb	$-128, %sil
	jne	LBB0_7
## %bb.2:
	cmpb	$-127, %r14b
	je	LBB0_4
## %bb.3:
	movq	_IF_OPER_UNKNOWN@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r14b
	jne	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_netif_dormant
	testl	%eax, %eax
	movzbl	%r14b, %eax
	movl	$128, %ebx
	cmovnel	%eax, %ebx
	movb	(%r15), %r14b
	cmpb	%bl, %r14b
	je	LBB0_7
LBB0_8:
	movq	_dev_base_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_bh
	movb	%bl, (%r15)
	movq	%r14, %rdi
	callq	_write_unlock_bh
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_state_change            ## TAILCALL
LBB0_5:
	movq	_IF_OPER_UNKNOWN@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r14b
	movzbl	%r14b, %eax
	movl	$129, %ecx
	movl	%eax, %ebx
	cmovel	%ecx, %ebx
	cmpb	$-128, %al
	cmovel	%ecx, %ebx
	cmpb	%bl, %r14b
	jne	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_OPER_UNKNOWN,1,0            ## @IF_OPER_UNKNOWN
	.comm	_dev_base_lock,4,2              ## @dev_base_lock
	.no_dead_strip	_set_operstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_operstate
_set_operstate:                         ; @set_operstate
	.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	x19, x0
	ldrb	w20, [x0]
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _IF_OPER_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_OPER_UNKNOWN@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w20, #129
	ccmp	w20, w8, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_netif_dormant
	mov	w8, #-128
	cmp	w0, #0
	csel	w21, w8, w20, eq
	ldrb	w20, [x19]
	cmp	w20, w21, uxtb
	b.eq	LBB0_6
LBB0_4:
Lloh2:
	adrp	x20, _dev_base_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _dev_base_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_bh
	strb	w21, [x19]
	mov	x0, x20
	bl	_write_unlock_bh
	mov	x0, x19
	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
	b	_netdev_state_change
LBB0_5:
Lloh4:
	adrp	x8, _IF_OPER_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IF_OPER_UNKNOWN@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w20, w8
	mov	w8, #128
	ccmp	w20, w8, #4, ne
	mov	w8, #-127
	csel	w21, w8, w20, eq
	cmp	w20, w21, uxtb
	b.ne	LBB0_4
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_OPER_UNKNOWN,1,0            ; @IF_OPER_UNKNOWN
	.comm	_dev_base_lock,4,2              ; @dev_base_lock
	.no_dead_strip	_set_operstate
.subsections_via_symbols
