	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_bkm
_reset_bkm:                             ## @reset_bkm
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_ISDN_CTYPE_BKM_A4T@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%rdi), %rbx
	movl	$255, (%rbx)
	movl	$10, %edi
	callq	_mdelay
	movq	_sysRESET@GOTPCREL(%rip), %r14
	movl	$255, %eax
	orl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	$10, %edi
	callq	_mdelay
	movq	_sysCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	_guestWAIT_CFG@GOTPCREL(%rip), %rax
	movq	_g_A4T_JADE_RES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	movq	_g_A4T_ISAR_RES@GOTPCREL(%rip), %r15
	orl	(%r15), %ecx
	movq	_g_A4T_ISAC_RES@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	movq	_g_A4T_JADE_BOOTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_g_A4T_ISAR_BOOTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	$10, %edi
	callq	_mdelay
	movl	(%r14), %eax
	orl	(%r12), %eax
	orl	(%r15), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movl	$10, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_CTYPE_BKM_A4T,8,3         ## @ISDN_CTYPE_BKM_A4T
	.comm	_sysRESET,4,2                   ## @sysRESET
	.comm	_sysCFG,4,2                     ## @sysCFG
	.comm	_guestWAIT_CFG,4,2              ## @guestWAIT_CFG
	.comm	_g_A4T_JADE_RES,4,2             ## @g_A4T_JADE_RES
	.comm	_g_A4T_ISAR_RES,4,2             ## @g_A4T_ISAR_RES
	.comm	_g_A4T_ISAC_RES,4,2             ## @g_A4T_ISAC_RES
	.comm	_g_A4T_JADE_BOOTR,4,2           ## @g_A4T_JADE_BOOTR
	.comm	_g_A4T_ISAR_BOOTR,4,2           ## @g_A4T_ISAR_BOOTR
	.no_dead_strip	_reset_bkm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_bkm
_reset_bkm:                             ; @reset_bkm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ISDN_CTYPE_BKM_A4T@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISDN_CTYPE_BKM_A4T@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x0, #8]
	mov	w8, #255
	str	w8, [x19]
	mov	w0, #10
	bl	_mdelay
Lloh3:
	adrp	x20, _sysRESET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _sysRESET@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w8, w8, #0xff
	str	w8, [x19]
	mov	w0, #10
	bl	_mdelay
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _sysCFG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sysCFG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x8, _guestWAIT_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _guestWAIT_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x20, _g_A4T_JADE_RES@GOTPAGE
Lloh12:
	ldr	x20, [x20, _g_A4T_JADE_RES@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh13:
	adrp	x21, _g_A4T_ISAR_RES@GOTPAGE
Lloh14:
	ldr	x21, [x21, _g_A4T_ISAR_RES@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh15:
	adrp	x22, _g_A4T_ISAC_RES@GOTPAGE
Lloh16:
	ldr	x22, [x22, _g_A4T_ISAC_RES@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _g_A4T_JADE_BOOTR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _g_A4T_JADE_BOOTR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _g_A4T_ISAR_BOOTR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _g_A4T_ISAR_BOOTR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	mov	w0, #10
	bl	_mdelay
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	w0, #10
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mdelay
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_CTYPE_BKM_A4T,8,3         ; @ISDN_CTYPE_BKM_A4T
	.comm	_sysRESET,4,2                   ; @sysRESET
	.comm	_sysCFG,4,2                     ; @sysCFG
	.comm	_guestWAIT_CFG,4,2              ; @guestWAIT_CFG
	.comm	_g_A4T_JADE_RES,4,2             ; @g_A4T_JADE_RES
	.comm	_g_A4T_ISAR_RES,4,2             ; @g_A4T_ISAR_RES
	.comm	_g_A4T_ISAC_RES,4,2             ; @g_A4T_ISAC_RES
	.comm	_g_A4T_JADE_BOOTR,4,2           ; @g_A4T_JADE_BOOTR
	.comm	_g_A4T_ISAR_BOOTR,4,2           ; @g_A4T_ISAR_BOOTR
	.no_dead_strip	_reset_bkm
.subsections_via_symbols
