	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_ccung_reset_assert
_aw_ccung_reset_assert:                 ## @aw_ccung_reset_assert
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_device_get_softc
	movq	%rax, %r14
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_dprintf
	cmpq	%rbx, (%r14)
	jle	LBB0_3
## %bb.1:
	movq	16(%r14), %rax
	shlq	$4, %rbx
	cmpq	$0, (%rax,%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	16(%r14), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r14, %rdi
	callq	_CCU_READ4
	movl	%eax, %r13d
	movq	16(%r14), %rax
	movq	(%rax,%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %edx
	callq	_dprintf
	movq	16(%r14), %rax
	movb	8(%rax,%rbx), %cl
	movl	%r13d, %edx
	btrl	%ecx, %edx
	btsl	%ecx, %r13d
	testl	%r15d, %r15d
	cmovnel	%edx, %r13d
	movq	(%rax,%rbx), %rsi
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %edx
	callq	_dprintf
	movq	16(%r14), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_CCU_WRITE4
	movq	%r12, %rdi
	callq	_mtx_unlock
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sassert reset id %ld\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"De"

L_.str.3:                               ## @.str.3
	.asciz	"offset=%x Read %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"offset=%x Write %x\n"

	.no_dead_strip	_aw_ccung_reset_assert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_ccung_reset_assert
_aw_ccung_reset_assert:                 ; @aw_ccung_reset_assert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x1, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dprintf
	ldr	x8, [x19]
	cmp	x8, x21
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	lsl	x23, x21, #4
	ldr	x8, [x8, x23]
	cbz	x8, LBB0_3
; %bb.2:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mtx_lock
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x23]
	mov	x0, x19
	bl	_CCU_READ4
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x23]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_dprintf
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w9, [x8, #8]
	mov	w10, #1
	lsl	w9, w10, w9
	bic	w10, w22, w9
	orr	w9, w9, w22
	cmp	w20, #0
	csel	w20, w9, w10, eq
	ldr	x1, [x8]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_dprintf
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x23]
	mov	x0, x19
	mov	x2, x20
	bl	_CCU_WRITE4
	mov	x0, x21
	bl	_mtx_unlock
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sassert reset id %ld\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"De"

l_.str.3:                               ; @.str.3
	.asciz	"offset=%x Read %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"offset=%x Write %x\n"

	.no_dead_strip	_aw_ccung_reset_assert
.subsections_via_symbols
