	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_basic_hw_test
_rocker_basic_hw_test:                  ## @rocker_basic_hw_test
	.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
	movq	%rdi, %r15
	movq	(%rdi), %r14
	callq	_rocker_reg_test
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_ROCKER_MSIX_VEC_TEST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rocker_msix_vector
	movq	_rocker_test_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_rocker_driver_name@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-40(%rbp), %r8
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rocker_wait_init
	movq	_TEST_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_rocker_write32
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rocker_wait_event_timeout
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rocker_dma_test
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_rocker_msix_vector
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_free_irq
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg test failed\n"

	.comm	_ROCKER_MSIX_VEC_TEST,4,2       ## @ROCKER_MSIX_VEC_TEST
	.comm	_rocker_test_irq_handler,4,2    ## @rocker_test_irq_handler
	.comm	_rocker_driver_name,4,2         ## @rocker_driver_name
L_.str.1:                               ## @.str.1
	.asciz	"cannot assign test irq\n"

	.comm	_TEST_IRQ,4,2                   ## @TEST_IRQ
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"no interrupt received within a timeout\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"dma test failed\n"

	.no_dead_strip	_rocker_basic_hw_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_basic_hw_test
_rocker_basic_hw_test:                  ; @rocker_basic_hw_test
	.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	x19, x0
	ldr	x20, [x0]
	bl	_rocker_reg_test
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x22, _ROCKER_MSIX_VEC_TEST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ROCKER_MSIX_VEC_TEST@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rocker_msix_vector
Lloh4:
	adrp	x8, _rocker_test_irq_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rocker_test_irq_handler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _rocker_driver_name@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rocker_driver_name@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	w2, #0
	bl	_request_irq
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
	add	x0, sp, #8
	bl	_rocker_wait_init
Lloh12:
	adrp	x8, _TEST_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TEST_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rocker_write32
Lloh15:
	adrp	x8, _HZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	add	x0, sp, #8
	bl	_rocker_wait_event_timeout
	cbz	w0, LBB0_9
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_rocker_dma_test
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rocker_msix_vector
	add	x1, sp, #8
	bl	_free_irq
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg test failed\n"

	.comm	_ROCKER_MSIX_VEC_TEST,4,2       ; @ROCKER_MSIX_VEC_TEST
	.comm	_rocker_test_irq_handler,4,2    ; @rocker_test_irq_handler
	.comm	_rocker_driver_name,4,2         ; @rocker_driver_name
l_.str.1:                               ; @.str.1
	.asciz	"cannot assign test irq\n"

	.comm	_TEST_IRQ,4,2                   ; @TEST_IRQ
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"no interrupt received within a timeout\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"dma test failed\n"

	.no_dead_strip	_rocker_basic_hw_test
.subsections_via_symbols
