	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_uart_probe
_sdio_uart_probe:                       ## @sdio_uart_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_SDIO_CLASS_UART@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_SDIO_CLASS_GPS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	movq	16(%r14), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$145, (%rbx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$10, 4(%rbx)
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_11
## %bb.14:
	movq	%r14, %rdi
	callq	_sdio_func_id
	movq	8(%rbx), %rcx
	movl	8(%rcx), %edx
	movl	12(%rcx), %ecx
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%rbx), %rax
	movl	20(%rax), %ecx
	shll	$8, %ecx
	orl	16(%rax), %ecx
	movl	24(%rax), %eax
	shll	$16, %eax
	orl	%ecx, %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_sdio_func_id
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	8(%rbx), %rax
	movl	28(%rax), %eax
	imull	$115200, %eax, %ecx             ## imm = 0x1C200
	testl	%eax, %eax
	movl	$115200, %eax                   ## imm = 0x1C200
	cmovnel	%ecx, %eax
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_sdio_func_id
	movl	4(%r15), %edx
	movq	8(%rbx), %rsi
	movl	28(%rsi), %ecx
	movl	36(%rsi), %r8d
	shll	$8, %r8d
	orl	32(%rsi), %r8d
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sdio_set_drvdata
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_tty_port_init
	movq	_sdio_uart_port_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	callq	_sdio_uart_add_port
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %r13d
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_sdio_uart_tty_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	addq	$8, %r14
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_tty_port_register_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%r15, %rdi
	callq	_sdio_uart_port_remove
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SDIO_CLASS_UART,8,3            ## @SDIO_CLASS_UART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: need info on UART class basic setup\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_SDIO_CLASS_GPS,8,3             ## @SDIO_CLASS_GPS
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"%s: Register ID = 0x%02x, Exp ID = 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: regs offset = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: clk %d baudcode %u 4800-div %u\n"

	.comm	_sdio_uart_port_ops,4,2         ## @sdio_uart_port_ops
	.comm	_sdio_uart_tty_driver,4,2       ## @sdio_uart_tty_driver
	.no_dead_strip	_sdio_uart_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_uart_probe
_sdio_uart_probe:                       ; @sdio_uart_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SDIO_CLASS_UART@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDIO_CLASS_UART@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_sdio_func_id
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	mov	x0, x19
	bl	_kfree
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x9, _SDIO_CLASS_GPS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDIO_CLASS_GPS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x21, [x20, #16]
	cbnz	x21, LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_sdio_func_id
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_7:
	mov	x0, x19
	bl	_kfree
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #145
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x21, #4]
	cmp	w8, #10
	b.lt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_10
; %bb.14:
	mov	x0, x20
	bl	_sdio_func_id
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldp	w2, w8, [x8, #8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x21, #8]
	ldp	w9, w10, [x8, #16]
	orr	w9, w9, w10, lsl #8
	ldr	w8, [x8, #24]
	orr	w8, w9, w8, lsl #16
	str	w8, [x19]
	mov	x0, x20
	bl	_sdio_func_id
	mov	x1, x0
	ldr	w2, [x19]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #28]
	mov	w9, #49664
	movk	w9, #1, lsl #16
	mul	w10, w8, w9
	cmp	w8, #0
	csel	w8, w9, w10, eq
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_sdio_func_id
	mov	x1, x0
	ldr	w2, [x19, #4]
	ldr	x8, [x21, #8]
	ldp	w10, w9, [x8, #32]
	ldr	w8, [x8, #28]
	orr	w9, w10, w9, lsl #8
	stp	x8, x9, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	str	x20, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_sdio_set_drvdata
	add	x22, x19, #16
	mov	x0, x22
	bl	_tty_port_init
Lloh25:
	adrp	x8, _sdio_uart_port_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sdio_uart_port_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_sdio_uart_add_port
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_16:
Lloh27:
	adrp	x8, _sdio_uart_tty_driver@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sdio_uart_tty_driver@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	add	x3, x20, #8
	mov	x0, x22
	bl	_tty_port_register_device
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_sdio_uart_port_remove
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_18:
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SDIO_CLASS_UART,8,3            ; @SDIO_CLASS_UART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: need info on UART class basic setup\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_SDIO_CLASS_GPS,8,3             ; @SDIO_CLASS_GPS
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"%s: Register ID = 0x%02x, Exp ID = 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: regs offset = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: clk %d baudcode %u 4800-div %u\n"

	.comm	_sdio_uart_port_ops,4,2         ; @sdio_uart_port_ops
	.comm	_sdio_uart_tty_driver,4,2       ; @sdio_uart_tty_driver
	.no_dead_strip	_sdio_uart_probe
.subsections_via_symbols
