	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function or51211_reset
_or51211_reset:                         ## @or51211_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	movl	$31, %esi
	movl	$31, %edx
	callq	_bttv_gpio_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_2:
	movl	(%rbx), %edi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_bttv_write_gpio
	movl	$20, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	$31, %esi
	movl	$1, %edx
	callq	_bttv_write_gpio
	movl	$500, %edi                      ## imm = 0x1F4
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"or51211: Init Error - Can't Reset DVR (%i)\n"

	.no_dead_strip	_or51211_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function or51211_reset
_or51211_reset:                         ; @or51211_reset
	.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	x8, [x0]
	ldr	x19, [x8]
	ldr	w0, [x19]
	mov	w1, #31
	mov	w2, #31
	bl	_bttv_gpio_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_2:
	ldr	w0, [x19]
	mov	w1, #31
	mov	w2, #0
	bl	_bttv_write_gpio
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	mov	w1, #31
	mov	w2, #1
	bl	_bttv_write_gpio
	mov	w0, #500
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"or51211: Init Error - Can't Reset DVR (%i)\n"

	.no_dead_strip	_or51211_reset
.subsections_via_symbols
