	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_pre_card_setup         ## -- Begin function cx231xx_pre_card_setup
	.p2align	4, 0x90
_cx231xx_pre_card_setup:                ## @cx231xx_pre_card_setup
	.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
	movl	32(%rdi), %edi
	movl	24(%rbx), %edx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_CX231XX_BOARD_ASTROMETA_T2HYBRID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_value
LBB0_2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_direction
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_value
LBB0_4:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	js	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_cx231xx_set_gpio_direction
LBB0_6:
	movq	_CX231XX_ANALOG_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cx231xx_set_mode               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Identified as %s (card=%d)\n"

	.comm	_CX231XX_BOARD_ASTROMETA_T2HYBRID,8,3 ## @CX231XX_BOARD_ASTROMETA_T2HYBRID
	.comm	_CX231XX_ANALOG_MODE,4,2        ## @CX231XX_ANALOG_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_pre_card_setup         ; -- Begin function cx231xx_pre_card_setup
	.p2align	2
_cx231xx_pre_card_setup:                ; @cx231xx_pre_card_setup
	.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	w0, [x0, #32]
	ldr	w2, [x19, #24]
	ldr	x3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x8, _CX231XX_BOARD_ASTROMETA_T2HYBRID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX231XX_BOARD_ASTROMETA_T2HYBRID@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	bl	_cx231xx_set_gpio_value
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cx231xx_set_gpio_direction
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cx231xx_set_gpio_value
LBB0_4:
	ldr	x1, [x19, #8]
	tbnz	x1, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w2, #1
	bl	_cx231xx_set_gpio_direction
LBB0_6:
Lloh5:
	adrp	x8, _CX231XX_ANALOG_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX231XX_ANALOG_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cx231xx_set_mode
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Identified as %s (card=%d)\n"

	.comm	_CX231XX_BOARD_ASTROMETA_T2HYBRID,8,3 ; @CX231XX_BOARD_ASTROMETA_T2HYBRID
	.comm	_CX231XX_ANALOG_MODE,4,2        ; @CX231XX_ANALOG_MODE
.subsections_via_symbols
