	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bba_dochallengeresponse
_bba_dochallengeresponse:               ## @bba_dochallengeresponse
	.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	_UIP_LOG
	xorl	%r14d, %r14d
	leaq	-28(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_bba_devpoll
	movl	-28(%rbp), %eax
	cmpl	$4096, %eax                     ## imm = 0x1000
	cmovel	%r14d, %ebx
	cmpl	$99, %ebx
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	$2048, %eax                     ## imm = 0x800
	je	LBB0_1
LBB0_3:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %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	"bba_dochallengeresponse()\n"

	.comm	_UIP_ERR_IF,4,2                 ## @UIP_ERR_IF
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
	.no_dead_strip	_bba_dochallengeresponse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bba_dochallengeresponse
_bba_dochallengeresponse:               ; @bba_dochallengeresponse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_UIP_LOG
	mov	w19, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bba_devpoll
	ldr	w8, [sp, #12]
	cmp	w8, #1, lsl #12                 ; =4096
	csinc	w19, wzr, w19, eq
	and	w8, w8, #0x800
	cmp	w19, #99
	ccmp	w8, #0, #0, le
	b.eq	LBB0_1
; %bb.2:
Lloh2:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bba_dochallengeresponse()\n"

	.comm	_UIP_ERR_IF,4,2                 ; @UIP_ERR_IF
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
	.no_dead_strip	_bba_dochallengeresponse
.subsections_via_symbols
