	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_tea5777_update_read_reg
_radio_tea5777_update_read_reg:         ## @radio_tea5777_update_read_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	cmpl	$-1, (%rdi)
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_radio_tea5777_set_freq
	testl	%eax, %eax
	jne	LBB0_9
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movl	%r14d, %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_radio_tea5777_update_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_tea5777_update_read_reg
_radio_tea5777_update_read_reg:         ; @radio_tea5777_update_read_reg
	.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
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_radio_tea5777_set_freq
	cbnz	w0, LBB0_2
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	cbz	x0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_2
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_radio_tea5777_update_read_reg
.subsections_via_symbols
