	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_add_port
_sdio_uart_add_port:                    ## @sdio_uart_add_port
	.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, %r15
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	addq	$12, %rdi
	callq	_mutex_init
	leaq	8(%r15), %rdi
	callq	_spin_lock_init
	leaq	4(%r15), %rdi
	movq	_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_8
LBB0_2:
	movq	_sdio_uart_table_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_UART_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	_sdio_uart_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movl	%edx, (%r15)
	movq	%r15, (%rcx,%rdx,8)
	xorl	%r14d, %r14d
LBB0_7:
	movq	_sdio_uart_table_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_FIFO_SIZE,4,2                  ## @FIFO_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sdio_uart_table_lock,4,2       ## @sdio_uart_table_lock
	.comm	_UART_NR,4,2                    ## @UART_NR
	.comm	_sdio_uart_table,8,3            ## @sdio_uart_table
	.no_dead_strip	_sdio_uart_add_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_uart_add_port
_sdio_uart_add_port:                    ; @sdio_uart_add_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, x0, #12
	bl	_mutex_init
	add	x0, x19, #8
	bl	_spin_lock_init
	add	x0, x19, #4
Lloh3:
	adrp	x8, _FIFO_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIFO_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_kfifo_alloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	neg	w20, w20
Lloh12:
	adrp	x0, _sdio_uart_table_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _sdio_uart_table_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh14:
	adrp	x8, _UART_NR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UART_NR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x9, #0
Lloh17:
	adrp	x10, _sdio_uart_table@GOTPAGE
Lloh18:
	ldr	x10, [x10, _sdio_uart_table@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w20, #0
	str	w9, [x19]
	str	x19, [x10, x9, lsl #3]
LBB0_7:
Lloh20:
	adrp	x0, _sdio_uart_table_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _sdio_uart_table_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_FIFO_SIZE,4,2                  ; @FIFO_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sdio_uart_table_lock,4,2       ; @sdio_uart_table_lock
	.comm	_UART_NR,4,2                    ; @UART_NR
	.comm	_sdio_uart_table,8,3            ; @sdio_uart_table
	.no_dead_strip	_sdio_uart_add_port
.subsections_via_symbols
