	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_switch_register            ## -- Begin function b53_switch_register
	.p2align	4, 0x90
_b53_switch_register:                   ## @b53_switch_register
	.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, %rbx
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	8(%rcx), %eax
	movl	%eax, 12(%rbx)
	movl	4(%rcx), %edx
	movl	%edx, 24(%rbx)
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_4
LBB0_1:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_b53_switch_detect
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_b53_switch_init
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_register_switch                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found switch: %s, rev %i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_switch_register            ; -- Begin function b53_switch_register
	.p2align	2
_b53_switch_register:                   ; @b53_switch_register
	.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
	mov	x19, x0
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x9, #8]
	str	w8, [x19, #12]
	ldp	w9, w10, [x9]
	str	w10, [x19, #24]
	str	w9, [x19, #4]
	cbnz	w8, LBB0_5
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_b53_switch_detect
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_b53_switch_init
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w1, [x19]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_register_switch
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found switch: %s, rev %i\n"

.subsections_via_symbols
