	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_handle_event
_if_sdio_handle_event:                  ## @if_sdio_handle_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MODEL_8385@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	movq	_IF_SDIO_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_sdio_readb
	movl	-12(%rbp), %ecx
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.2:
	sarl	$3, %eax
	jmp	LBB0_6
LBB0_3:
	cmpl	$3, %edx
	ja	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_lbs_deb_sdio
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_7
LBB0_5:
	movzbl	(%rsi), %eax
LBB0_6:
	movl	8(%rbx), %edi
	movzbl	%al, %esi
	callq	_lbs_queue_event
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODEL_8385,8,3                 ## @MODEL_8385
	.comm	_IF_SDIO_EVENT,4,2              ## @IF_SDIO_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event packet too small (%d bytes)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_if_sdio_handle_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_handle_event
_if_sdio_handle_event:                  ; @if_sdio_handle_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MODEL_8385@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODEL_8385@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _IF_SDIO_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IF_SDIO_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sdio_readb
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_7
; %bb.2:
	asr	w8, w8, #3
	b	LBB0_6
LBB0_3:
	cmp	w2, #3
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_lbs_deb_sdio
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldrb	w8, [x1]
LBB0_6:
	ldr	w0, [x19, #8]
	and	w1, w8, #0xff
	bl	_lbs_queue_event
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MODEL_8385,8,3                 ; @MODEL_8385
	.comm	_IF_SDIO_EVENT,4,2              ; @IF_SDIO_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event packet too small (%d bytes)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_if_sdio_handle_event
.subsections_via_symbols
