	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_disable
_mac_disable:                           ## @mac_disable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	(%rax), %r14d
	callq	_mac_reset
	movl	4(%r12), %ebx
	movl	%r14d, %edi
	callq	_REG_MODE_CFG
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vsc_read
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	andb	$-3, -36(%rbp)
LBB0_2:
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	andb	$-2, -36(%rbp)
LBB0_4:
	movl	4(%r12), %ebx
	movl	%r14d, %edi
	callq	_REG_MODE_CFG
	movl	-36(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vsc_write
	movl	4(%r12), %ebx
	movl	%r14d, %edi
	callq	_REG_MODE_CFG
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_vsc_read
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %r15d
	movl	$4, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_CRA
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_vsc_write
	incl	%ebx
	cmpl	$59, %ebx
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_MAC_DIRECTION_TX,4,2           ## @MAC_DIRECTION_TX
	.no_dead_strip	_mac_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_disable
_mac_disable:                           ; @mac_disable
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	bl	_mac_reset
	ldr	w22, [x19, #4]
	mov	x0, x20
	bl	_REG_MODE_CFG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x22
	bl	_vsc_read
Lloh0:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffd
	str	w8, [sp, #12]
LBB0_2:
Lloh3:
	adrp	x8, _MAC_DIRECTION_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffe
	str	w8, [sp, #12]
LBB0_4:
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_REG_MODE_CFG
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_vsc_write
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_REG_MODE_CFG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_vsc_read
	mov	w21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #4]
	mov	w0, #4
	mov	x1, x20
	mov	x2, x21
	bl	_CRA
	mov	x1, x0
	mov	x0, x22
	mov	w2, #0
	bl	_vsc_write
	add	w21, w21, #1
	cmp	w21, #59
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
	.no_dead_strip	_mac_disable
.subsections_via_symbols
