	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_bus_add_socket
_pcmcia_bus_add_socket:                 ## @pcmcia_bus_add_socket
	.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, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_pcmcia_get_socket
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_pccard_cis_attr@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_pcmcia_put_socket
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_pcmcia_bus_callback@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_pccard_register_pcmcia
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_pcmcia_put_socket
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCMCIA obtaining reference to socket failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_pccard_cis_attr,4,2            ## @pccard_cis_attr
L_.str.1:                               ## @.str.1
	.asciz	"PCMCIA registration failed\n"

	.comm	_pcmcia_bus_callback,4,2        ## @pcmcia_bus_callback
	.no_dead_strip	_pcmcia_bus_add_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_bus_add_socket
_pcmcia_bus_add_socket:                 ; @pcmcia_bus_add_socket
	.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
	bl	_dev_get_drvdata
	bl	_pcmcia_get_socket
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, _pccard_cis_attr@GOTPAGE
Lloh1:
	ldr	x1, [x1, _pccard_cis_attr@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_bin_file
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	stp	xzr, xzr, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
Lloh7:
	adrp	x1, _pcmcia_bus_callback@GOTPAGE
Lloh8:
	ldr	x1, [x1, _pcmcia_bus_callback@GOTPAGEOFF]
	mov	x0, x20
	bl	_pccard_register_pcmcia
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_pcmcia_put_socket
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCMCIA obtaining reference to socket failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_pccard_cis_attr,4,2            ; @pccard_cis_attr
l_.str.1:                               ; @.str.1
	.asciz	"PCMCIA registration failed\n"

	.comm	_pcmcia_bus_callback,4,2        ; @pcmcia_bus_callback
	.no_dead_strip	_pcmcia_bus_add_socket
.subsections_via_symbols
