	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_write
___card_write:                          ## @__card_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	ja	LBB0_2
## %bb.1:
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%rdi, %rax
	shlq	$5, %rax
	cmpl	$0, 24(%r9,%rax)
	je	LBB0_4
## %bb.6:
	sarl	$7, %edx
	movl	%edx, (%r9,%rax)
	movl	%esi, 4(%r9,%rax)
	movq	%rcx, 16(%r9,%rax)
	movl	%r8d, 8(%r9,%rax)
	movq	___blockwritecallback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	___card_writepage               ## TAILCALL
LBB0_2:
	movq	_CARD_ERROR_FATAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ## @CARD_ERROR_FATAL_ERROR
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	___blockwritecallback,4,2       ## @__blockwritecallback
	.no_dead_strip	___card_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_write
___card_write:                          ; @__card_write
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXI_CHANNEL_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #0, ls
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CARD_ERROR_FATAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_ERROR_FATAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	ret
LBB0_2:
Lloh9:
	adrp	x8, _cardmap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #5
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_4
; %bb.3:
	asr	w9, w2, #7
	stp	w9, w1, [x8]
	str	x3, [x8, #16]
	str	w4, [x8, #8]
Lloh12:
	adrp	x8, ___blockwritecallback@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___blockwritecallback@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	b	___card_writepage
LBB0_4:
Lloh15:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ; @CARD_ERROR_FATAL_ERROR
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	___blockwritecallback,4,2       ; @__blockwritecallback
	.no_dead_strip	___card_write
.subsections_via_symbols
