	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx88_detect_nicam
_cx88_detect_nicam:                     ## @cx88_detect_nicam
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_AUD_NICAM_STATUS2@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cx_read
	movl	$1, %r14d
	leaq	L_.str.1(%rip), %rbx
	testb	$2, %al
	jne	LBB0_7
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_cx_read
	testb	$2, %al
	jne	LBB0_7
## %bb.2:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_cx_read
	testb	$2, %al
	jne	LBB0_7
## %bb.3:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_cx_read
	testb	$2, %al
	jne	LBB0_7
## %bb.4:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_cx_read
	testb	$2, %al
	jne	LBB0_7
## %bb.5:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_cx_read
	testb	$2, %al
	jne	LBB0_7
## %bb.6:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	xorl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rbx
LBB0_7:
	movq	%rbx, %rdi
	callq	_dprintk
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start nicam autodetect.\n"

	.comm	_AUD_NICAM_STATUS2,4,2          ## @AUD_NICAM_STATUS2
L_.str.1:                               ## @.str.1
	.asciz	"nicam is detected.\n"

L_.str.2:                               ## @.str.2
	.asciz	"nicam is not detected.\n"

	.no_dead_strip	_cx88_detect_nicam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx88_detect_nicam
_cx88_detect_nicam:                     ; @cx88_detect_nicam
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x19, _AUD_NICAM_STATUS2@GOTPAGE
Lloh3:
	ldr	x19, [x19, _AUD_NICAM_STATUS2@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.1:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.2:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.3:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.4:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.5:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	bl	_cx_read
	tbnz	w0, #1, LBB0_7
; %bb.6:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	mov	w19, #0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	w19, #1
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dprintk
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start nicam autodetect.\n"

	.comm	_AUD_NICAM_STATUS2,4,2          ; @AUD_NICAM_STATUS2
l_.str.1:                               ; @.str.1
	.asciz	"nicam is detected.\n"

l_.str.2:                               ; @.str.2
	.asciz	"nicam is not detected.\n"

	.no_dead_strip	_cx88_detect_nicam
.subsections_via_symbols
