	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disable_MAC
_disable_MAC:                           ## @disable_MAC
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$1, %esi
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	jne	LBB0_8
LBB0_2:
	movq	_FLAG_ENABLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	4(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpl	$2, %ebx
	je	LBB0_5
## %bb.4:
	movl	8(%r14), %edi
	callq	_netif_carrier_off
LBB0_5:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MAC_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_issuecommand
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_6:
	cmpl	$1, %ebx
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_up
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_ENABLED,4,2               ## @FLAG_ENABLED
	.comm	_MAC_DISABLE,4,2                ## @MAC_DISABLE
	.no_dead_strip	_disable_MAC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disable_MAC
_disable_MAC:                           ; @disable_MAC
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_down_interruptible
	cbnz	x0, LBB0_8
LBB0_2:
Lloh0:
	adrp	x22, _FLAG_ENABLED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FLAG_ENABLED@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #4
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.3:
	cmp	w20, #2
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_netif_carrier_off
LBB0_5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _MAC_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	_issuecommand
	ldr	w0, [x22]
	mov	x1, x21
	bl	_clear_bit
LBB0_6:
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_up
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_ENABLED,4,2               ; @FLAG_ENABLED
	.comm	_MAC_DISABLE,4,2                ; @MAC_DISABLE
	.no_dead_strip	_disable_MAC
.subsections_via_symbols
