	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400ms_rx_setup               ## -- Begin function i2400ms_rx_setup
	.p2align	4, 0x90
_i2400ms_rx_setup:                      ## @i2400ms_rx_setup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	L_.str(%rip), %rdx
	movl	$5, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_d_fnstart
	leaq	4(%r14), %rdi
	callq	_init_waitqueue_head
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_sdio_claim_host
	movq	_i2400ms_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sdio_claim_irq
	movl	%eax, -28(%rbp)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$0, -28(%rbp)
	movq	_I2400MS_INTR_ENABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_sdio_writeb
	cmpl	$0, -28(%rbp)
	jns	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_sdio_release_irq
	movl	-28(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
LBB0_4:
	callq	_dev_err
LBB0_5:
	movq	%r15, %rdi
	callq	_sdio_release_host
	movl	-28(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdx
	movl	$5, %edi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_d_fnend
	movl	-28(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(i2400ms %p)\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_i2400ms_irq,4,2                ## @i2400ms_irq
L_.str.1:                               ## @.str.1
	.asciz	"Cannot claim IRQ: %d\n"

	.comm	_I2400MS_INTR_ENABLE_ADDR,4,2   ## @I2400MS_INTR_ENABLE_ADDR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable interrupts %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"(i2400ms %p) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400ms_rx_setup               ; -- Begin function i2400ms_rx_setup
	.p2align	2
_i2400ms_rx_setup:                      ; @i2400ms_rx_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
	add	x0, x19, #4
	bl	_init_waitqueue_head
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
Lloh2:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	bl	_sdio_claim_host
Lloh5:
	adrp	x8, _i2400ms_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i2400ms_irq@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdio_claim_irq
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	wzr, [sp, #12]
Lloh8:
	adrp	x8, _I2400MS_INTR_ENABLE_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2400MS_INTR_ENABLE_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #1
	bl	_sdio_writeb
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_sdio_release_irq
	ldr	w2, [sp, #12]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	bl	_sdio_release_host
	ldr	w4, [sp, #12]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnend
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400ms %p)\n"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_i2400ms_irq,4,2                ; @i2400ms_irq
l_.str.1:                               ; @.str.1
	.asciz	"Cannot claim IRQ: %d\n"

	.comm	_I2400MS_INTR_ENABLE_ADDR,4,2   ; @I2400MS_INTR_ENABLE_ADDR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable interrupts %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"(i2400ms %p) = %d\n"

.subsections_via_symbols
