	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_host_alloc                 ## -- Begin function ata_host_alloc
	.p2align	4, 0x90
_ata_host_alloc:                        ## @ata_host_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devres_open_group
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movslq	%r15d, %rax
	leaq	40(,%rax,8), %rsi
	movq	_ata_host_release@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	callq	_devres_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devres_add
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	leaq	28(%r12), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r14, 16(%r12)
	movl	%r15d, (%r12)
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.3:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ata_port_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%rax)
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devres_remove_group
	jmp	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devres_release_group
LBB0_8:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ata_host_release,4,2           ## @ata_host_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_host_alloc                 ; -- Begin function ata_host_alloc
	.p2align	2
_ata_host_alloc:                        ; @ata_host_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh2:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_devres_open_group
	cbz	w0, LBB0_8
; %bb.1:
	add	w8, w21, #1
	sbfiz	x8, x8, #3, #32
	add	x1, x8, #32
Lloh4:
	adrp	x8, _ata_host_release@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ata_host_release@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x20]
	bl	_devres_alloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_devres_add
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	add	x0, x20, #28
	bl	_spin_lock_init
	add	x0, x20, #24
	bl	_mutex_init
	str	x19, [x20, #16]
	str	w21, [x20]
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	w21, w21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ata_port_alloc
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w22, [x0]
	ldr	x8, [x20, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_devres_remove_group
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_devres_release_group
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ata_host_release,4,2           ; @ata_host_release
.subsections_via_symbols
