	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtl1_config
_dtl1_config:                           ## @dtl1_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	32(%rdi), %r15
	movl	$8, 24(%rdi)
	movq	_dtl1_confcheck@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	leaq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_pcmcia_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_RequestIRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cs_error
	movq	$0, 16(%rbx)
LBB0_3:
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_pcmcia_request_configuration
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_RequestConfiguration@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cs_error
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_dtl1_open
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_dtl1_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	%r15, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_dtl1_confcheck,4,2             ## @dtl1_confcheck
	.comm	_RequestIRQ,4,2                 ## @RequestIRQ
	.comm	_RequestConfiguration,4,2       ## @RequestConfiguration
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dtl1_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtl1_config
_dtl1_config:                           ; @dtl1_config
	.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	x20, [x0, #32]
	mov	w8, #8
	str	w8, [x0, #24]
Lloh0:
	adrp	x8, _dtl1_confcheck@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dtl1_confcheck@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pcmcia_loop_config
	tbnz	x0, #63, LBB0_6
; %bb.1:
	add	x1, x19, #16
	mov	x0, x19
	bl	_pcmcia_request_irq
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh3:
	adrp	x8, _RequestIRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RequestIRQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cs_error
	str	xzr, [x19, #16]
LBB0_3:
	add	x1, x19, #8
	mov	x0, x19
	bl	_pcmcia_request_configuration
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh6:
	adrp	x8, _RequestConfiguration@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RequestConfiguration@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cs_error
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_dtl1_open
	cbz	x0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_dtl1_release
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	bl	_strcpy
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dtl1_confcheck,4,2             ; @dtl1_confcheck
	.comm	_RequestIRQ,4,2                 ; @RequestIRQ
	.comm	_RequestConfiguration,4,2       ; @RequestConfiguration
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dtl1_config
.subsections_via_symbols
