	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on26_test_port
_on26_test_port:                        ## @on26_test_port
	.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
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_r0
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_r2
	movl	%eax, 4(%r14)
	movl	8(%r14), %r13d
	movl	12(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	$5, 8(%r14)
	movl	$12, %edi
	callq	_w2
	movl	$48, %edi
	callq	_CCP
	xorl	%edi, %edi
	callq	_CCP
	movl	$254, %edi
	callq	_w0
	movl	$170, %edi
	callq	_w0
	movl	$85, %edi
	callq	_w0
	xorl	%edi, %edi
	callq	_w0
	movl	$255, %edi
	callq	_w0
	xorl	%eax, %eax
	callq	_r1
	movl	%eax, %ebx
	shll	$4, %ebx
	andl	$3840, %ebx                     ## imm = 0xF00
	movl	$135, %edi
	callq	_w0
	xorl	%eax, %eax
	callq	_r1
	movl	%eax, %r15d
	andl	$240, %r15d
	orl	%ebx, %r15d
	movl	$120, %edi
	callq	_w0
	movl	$32, %edi
	callq	_w0
	movl	$4, %edi
	callq	_w2
	movl	$5, %edi
	callq	_w2
	xorl	%eax, %eax
	callq	_r1
	movl	%eax, %ebx
	shrl	$4, %ebx
	andl	$15, %ebx
	orl	%r15d, %ebx
	movl	$4, %edi
	callq	_w2
	movl	$255, %edi
	callq	_w0
	cmpl	$2911, %ebx                     ## imm = 0xB5F
	jne	LBB0_9
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	$2, %edi
	callq	_w0
	xorl	%edi, %edi
	callq	_w0
	movl	$3, %edi
	callq	_w0
	xorl	%edi, %edi
	callq	_w0
	movl	$2, %edi
	callq	_w0
	movl	$8, %edi
	callq	_w0
	movl	$100, %edi
	callq	_udelay
	movl	$2, %edi
	callq	_w0
	movl	$10, %edi
	callq	_w0
	movl	$100, %edi
	callq	_udelay
	movl	$2, %edi
	callq	_w0
	movl	$8, %edi
	callq	_w0
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$6, %edx
	movl	$160, %ecx
	callq	_on26_write_regr
	movq	_RESET_WAIT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	$0, %r15d
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$6, %edx
	movl	$160, %ecx
	callq	_on26_write_regr
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_on26_read_regr
	movl	%eax, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$6, %edx
	movl	$176, %ecx
	callq	_on26_write_regr
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_on26_read_regr
	movl	%eax, %ebx
	movl	%r15d, %eax
	orl	%ebx, %eax
	testb	$-128, %al
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$100, %edi
	callq	_mdelay
	incl	%r12d
	movl	(%r13), %eax
	cmpl	%eax, %r12d
	jl	LBB0_3
LBB0_6:
	cmpl	%eax, %r12d
	jne	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_printk
LBB0_8:
	movl	$4, %edi
	callq	_w0
	movl	$4, %edi
	callq	_w0
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_9:
	movl	$48, %edi
	callq	_CCP
	movl	%r13d, 8(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movl	(%r14), %edi
	callq	_w0
	movl	4(%r14), %edi
	callq	_w2
	movl	$5, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r13), %eax
	cmpl	%eax, %r12d
	je	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_P1,4,2                         ## @P1
	.comm	_P2,4,2                         ## @P2
	.comm	_RESET_WAIT,4,2                 ## @RESET_WAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on26: Device reset failed (%x,%x)\n"

	.no_dead_strip	_on26_test_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function on26_test_port
lCPI0_0:
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_on26_test_port:                        ; @on26_test_port
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	bl	_r0
	str	w0, [x19]
	bl	_r2
	str	w0, [x19, #4]
	ldr	d8, [x19, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	mov	w0, #12
	bl	_w2
	mov	w0, #48
	bl	_CCP
	mov	w0, #0
	bl	_CCP
	mov	w0, #254
	bl	_w0
	mov	w0, #170
	bl	_w0
	mov	w0, #85
	bl	_w0
	mov	w0, #0
	bl	_w0
	mov	w0, #255
	bl	_w0
	bl	_r1
	lsl	w8, w0, #4
	and	w20, w8, #0xf00
	mov	w0, #135
	bl	_w0
	bl	_r1
	bfxil	w20, w0, #0, #8
	mov	w0, #120
	bl	_w0
	mov	w0, #32
	bl	_w0
	mov	w0, #4
	bl	_w2
	mov	w0, #5
	bl	_w2
	bl	_r1
	bfxil	w20, w0, #4, #4
	mov	w0, #4
	bl	_w2
	mov	w0, #255
	bl	_w0
	cmp	w20, #2911
	b.ne	LBB0_9
; %bb.1:
	mov	w0, #2
	bl	_w0
	mov	w0, #0
	bl	_w0
	mov	w0, #3
	bl	_w0
	mov	w0, #0
	bl	_w0
	mov	w0, #2
	bl	_w0
	mov	w0, #8
	bl	_w0
	mov	w0, #100
	bl	_udelay
	mov	w0, #2
	bl	_w0
	mov	w0, #10
	bl	_w0
	mov	w0, #100
	bl	_udelay
	mov	w0, #2
	bl	_w0
	mov	w0, #8
	bl	_w0
	mov	w0, #1000
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #6
	mov	w3, #160
	bl	_on26_write_regr
Lloh2:
	adrp	x23, _RESET_WAIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RESET_WAIT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #6
	mov	w3, #160
	bl	_on26_write_regr
	mov	x0, x19
	mov	w1, #0
	mov	w2, #7
	bl	_on26_read_regr
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #6
	mov	w3, #176
	bl	_on26_write_regr
	mov	x0, x19
	mov	w1, #0
	mov	w2, #7
	bl	_on26_read_regr
	mov	x21, x0
	orr	w8, w20, w0
	tbz	w8, #7, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #100
	bl	_mdelay
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	mov	w20, #0
	mov	w21, #0
LBB0_6:
	cmp	w22, w8
	b.ne	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_printk
LBB0_8:
	mov	w0, #4
	bl	_w0
	mov	w0, #4
	bl	_w0
LBB0_9:
	mov	w0, #48
	bl	_CCP
	str	d8, [x19, #8]
	ldr	w0, [x19]
	bl	_w0
	ldr	w0, [x19, #4]
	bl	_w2
	mov	w0, #5
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_7
	b	LBB0_8
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_P1,4,2                         ; @P1
	.comm	_P2,4,2                         ; @P2
	.comm	_RESET_WAIT,4,2                 ; @RESET_WAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on26: Device reset failed (%x,%x)\n"

	.no_dead_strip	_on26_test_port
.subsections_via_symbols
