	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_config
_atmel_config:                          ## @atmel_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movq	_CONF_AUTO_SET_VPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CONF_AUTO_AUDIO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CONF_AUTO_SET_IO@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	_atmel_config_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movq	%rbx, %rdi
	callq	_atmel_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 32(%rbx)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	movq	_ATMEL_FW_TYPE_NONE@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %edx
	movq	_card_present@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rcx
	movq	%rbx, %r9
	callq	_init_atmel_card
	movl	%eax, %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_8
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel_config\n"

	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_VPP,4,2          ## @CONF_AUTO_SET_VPP
	.comm	_CONF_AUTO_AUDIO,4,2            ## @CONF_AUTO_AUDIO
	.comm	_CONF_AUTO_SET_IO,4,2           ## @CONF_AUTO_SET_IO
	.comm	_atmel_config_check,4,2         ## @atmel_config_check
L_.str.1:                               ## @.str.1
	.asciz	"atmel: cannot assign IRQ: check that CONFIG_ISA is set in kernel config."

	.comm	_ATMEL_FW_TYPE_NONE,4,2         ## @ATMEL_FW_TYPE_NONE
	.comm	_card_present,4,2               ## @card_present
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_atmel_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_config
_atmel_config:                          ; @atmel_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
	add	x20, x0, #16
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh2:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CONF_AUTO_SET_VPP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONF_AUTO_SET_VPP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _CONF_AUTO_AUDIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONF_AUTO_AUDIO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _CONF_AUTO_SET_IO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONF_AUTO_SET_IO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh14:
	adrp	x8, _atmel_config_check@GOTPAGE
Lloh15:
	ldr	x8, [x8, _atmel_config_check@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pcmcia_loop_config
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_atmel_release
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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_3:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_pcmcia_enable_device
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _ATMEL_FW_TYPE_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATMEL_FW_TYPE_NONE@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x8, x21, eq
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _card_present@GOTPAGE
Lloh23:
	ldr	x8, [x8, _card_present@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x3, x20
	mov	x5, x19
	bl	_init_atmel_card
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cbz	w0, LBB0_1
; %bb.6:
	mov	w0, #0
	b	LBB0_2
LBB0_7:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel_config\n"

	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_VPP,4,2          ; @CONF_AUTO_SET_VPP
	.comm	_CONF_AUTO_AUDIO,4,2            ; @CONF_AUTO_AUDIO
	.comm	_CONF_AUTO_SET_IO,4,2           ; @CONF_AUTO_SET_IO
	.comm	_atmel_config_check,4,2         ; @atmel_config_check
l_.str.1:                               ; @.str.1
	.asciz	"atmel: cannot assign IRQ: check that CONFIG_ISA is set in kernel config."

	.comm	_ATMEL_FW_TYPE_NONE,4,2         ; @ATMEL_FW_TYPE_NONE
	.comm	_card_present,4,2               ; @card_present
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_atmel_config
.subsections_via_symbols
