	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluecard_config
_bluecard_config:                       ## @bluecard_config
	.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
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	$32, 8(%rdi)
	leaq	24(%rdi), %r15
	movabsq	$25769803840, %rax              ## imm = 0x600000040
	movq	%rax, 24(%rdi)
	movl	$768, 32(%rdi)                  ## imm = 0x300
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movl	$832, 32(%rbx)                  ## imm = 0x340
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.2:
	movl	$896, 32(%rbx)                  ## imm = 0x380
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.3:
	movl	$960, 32(%rbx)                  ## imm = 0x3C0
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.4:
	movl	$512, 32(%rbx)                  ## imm = 0x200
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	movl	$576, 32(%rbx)                  ## imm = 0x240
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.6:
	movl	$640, 32(%rbx)                  ## imm = 0x280
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	movl	$704, 32(%rbx)                  ## imm = 0x2C0
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:
	movl	$256, 32(%rbx)                  ## imm = 0x100
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movl	$320, 32(%rbx)                  ## imm = 0x140
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	movl	$384, 32(%rbx)                  ## imm = 0x180
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movl	$448, 32(%rbx)                  ## imm = 0x1C0
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movl	$0, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movl	$64, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	$128, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	$192, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movq	_RequestIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_19:
	leaq	8(%rbx), %r15
	leaq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_pcmcia_request_irq
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	_RequestIRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cs_error
	movq	$0, 16(%rbx)
LBB0_21:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pcmcia_request_configuration
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_RequestConfiguration@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cs_error
	jmp	LBB0_18
LBB0_23:
	movq	%r14, %rdi
	callq	_bluecard_open
	testq	%rax, %rax
	je	LBB0_24
LBB0_18:
	movq	%rbx, %rdi
	callq	_bluecard_release
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	(%r14), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_RequestIO,4,2                  ## @RequestIO
	.comm	_RequestIRQ,4,2                 ## @RequestIRQ
	.comm	_RequestConfiguration,4,2       ## @RequestConfiguration
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_bluecard_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bluecard_config
lCPI0_0:
	.long	64                              ; 0x40
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bluecard_config:                       ; @bluecard_config
	.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
	mov	x19, x0
	ldr	x20, [x0, #40]
	mov	w8, #32
	mov	x21, x0
	str	w8, [x21, #8]!
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x22, x0
	str	d0, [x22, #24]!
	mov	w8, #768
	str	w8, [x0, #32]
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.1:
	mov	w8, #832
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.2:
	mov	w8, #896
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.3:
	mov	w8, #960
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.4:
	mov	w8, #512
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.5:
	mov	w8, #576
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.6:
	mov	w8, #640
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.7:
	mov	w8, #704
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.8:
	mov	w8, #256
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.9:
	mov	w8, #320
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.10:
	mov	w8, #384
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.11:
	mov	w8, #448
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.12:
	str	wzr, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.13:
	mov	w8, #64
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.14:
	mov	w8, #128
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.15:
	mov	w8, #192
	str	w8, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_pcmcia_request_io
	cbz	w0, LBB0_17
; %bb.16:
	mov	x2, x0
Lloh2:
	adrp	x8, _RequestIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RequestIO@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
	add	x1, x19, #16
	mov	x0, x19
	bl	_pcmcia_request_irq
	cbz	w0, LBB0_19
; %bb.18:
	mov	x2, x0
Lloh4:
	adrp	x8, _RequestIRQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RequestIRQ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cs_error
	str	xzr, [x19, #16]
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_pcmcia_request_configuration
	cbz	w0, LBB0_22
; %bb.20:
	mov	x2, x0
Lloh7:
	adrp	x8, _RequestConfiguration@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RequestConfiguration@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cs_error
	b	LBB0_23
LBB0_22:
	mov	x0, x20
	bl	_bluecard_open
	cbz	x0, LBB0_25
LBB0_23:
	mov	x0, x19
	bl	_bluecard_release
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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
LBB0_25:
	ldr	w0, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	bl	_strcpy
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_24
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RequestIO,4,2                  ; @RequestIO
	.comm	_RequestIRQ,4,2                 ; @RequestIRQ
	.comm	_RequestConfiguration,4,2       ; @RequestConfiguration
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_bluecard_config
.subsections_via_symbols
