	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_select                ## -- Begin function expander_select
	.p2align	4, 0x90
_expander_select:                       ## @expander_select
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_bit_for_pin
	movl	$255, %r15d
	btrl	%eax, %r15d
	cmpl	$8, %r14d
	movq	_EXPANDER_REG_IODIRB@GOTPCREL(%rip), %rax
	cmovlq	_EXPANDER_REG_IODIRA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EXPANDER_REG_OLATB@GOTPCREL(%rip), %rbx
	cmovlq	_EXPANDER_REG_OLATA@GOTPCREL(%rip), %rbx
	movl	%r15d, %esi
	callq	_expander_write
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_expander_write
	movq	_EXPANDER_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_us                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXPANDER_REG_IODIRA,4,2        ## @EXPANDER_REG_IODIRA
	.comm	_EXPANDER_REG_OLATA,4,2         ## @EXPANDER_REG_OLATA
	.comm	_EXPANDER_REG_IODIRB,4,2        ## @EXPANDER_REG_IODIRB
	.comm	_EXPANDER_REG_OLATB,4,2         ## @EXPANDER_REG_OLATB
	.comm	_EXPANDER_PAUSE,4,2             ## @EXPANDER_PAUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expander_select                ; -- Begin function expander_select
	.p2align	2
_expander_select:                       ; @expander_select
	.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
	bl	_bit_for_pin
	mov	w8, #1
	lsl	w8, w8, w0
	mvn	w8, w8
Lloh0:
	adrp	x9, _EXPANDER_REG_IODIRA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXPANDER_REG_IODIRA@GOTPAGEOFF]
	and	w20, w8, #0xff
Lloh2:
	adrp	x8, _EXPANDER_REG_IODIRB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXPANDER_REG_IODIRB@GOTPAGEOFF]
	cmp	w19, #8
	csel	x8, x9, x8, lt
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _EXPANDER_REG_OLATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EXPANDER_REG_OLATA@GOTPAGEOFF]
Lloh6:
	adrp	x9, _EXPANDER_REG_OLATB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXPANDER_REG_OLATB@GOTPAGEOFF]
	csel	x19, x8, x9, lt
	mov	x1, x20
	bl	_expander_write
	ldr	w0, [x19]
	mov	x1, x20
	bl	_expander_write
Lloh8:
	adrp	x8, _EXPANDER_PAUSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXPANDER_PAUSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wait_us
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EXPANDER_REG_IODIRA,4,2        ; @EXPANDER_REG_IODIRA
	.comm	_EXPANDER_REG_OLATA,4,2         ; @EXPANDER_REG_OLATA
	.comm	_EXPANDER_REG_IODIRB,4,2        ; @EXPANDER_REG_IODIRB
	.comm	_EXPANDER_REG_OLATB,4,2         ; @EXPANDER_REG_OLATB
	.comm	_EXPANDER_PAUSE,4,2             ; @EXPANDER_PAUSE
.subsections_via_symbols
