	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pccard_read_tuple              ## -- Begin function pccard_read_tuple
	.p2align	4, 0x90
_pccard_read_tuple:                     ## @pccard_read_tuple
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%r13d, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_BIND_FN_ALL@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_TUPLE_RETURN_COMMON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
LBB0_4:
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pccard_get_first_tuple
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r12, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	$255, -80(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_pccard_get_tuple_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_pcmcia_parse_tuple
	movl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory to read tuple\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BIND_FN_ALL,4,2                ## @BIND_FN_ALL
	.comm	_TUPLE_RETURN_COMMON,8,3        ## @TUPLE_RETURN_COMMON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pccard_read_tuple              ; -- Begin function pccard_read_tuple
	.p2align	2
_pccard_read_tuple:                     ; @pccard_read_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #256
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	w23, [sp, #40]
	str	xzr, [sp, #32]
Lloh3:
	adrp	x8, _BIND_FN_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIND_FN_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _TUPLE_RETURN_COMMON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TUPLE_RETURN_COMMON@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #32]
LBB0_3:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_pccard_get_first_tuple
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	stp	xzr, x20, [sp, #16]
	mov	w8, #255
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_pccard_get_tuple_data
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, x19
	bl	_pcmcia_parse_tuple
	mov	x22, x0
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory to read tuple\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BIND_FN_ALL,4,2                ; @BIND_FN_ALL
	.comm	_TUPLE_RETURN_COMMON,8,3        ; @TUPLE_RETURN_COMMON
.subsections_via_symbols
