	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ataidentify
_ataidentify:                           ## @ataidentify
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_ata_do_identify
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_cam_freeccb
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_arglist@GOTPCREL(%rip), %rax
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movq	-40(%rbp), %rdi
	movl	$8, %esi
	callq	_dump_data
LBB0_6:
	movq	-40(%rbp), %r8
	movq	_ATA_SUPPORT_PROTECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r8)
	je	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_ata_read_native_max
	movq	-40(%rbp), %r8
LBB0_8:
	movq	_ATA_SUPPORT_AMAX_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r8)
	je	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_ata_get_native_max
LBB0_10:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	movq	-40(%rbp), %rdi
	callq	_ata_print_ident
	movq	%rbx, %rdi
	callq	_camxferrate
	movq	-40(%rbp), %rdi
	callq	_atacapprint
	movq	-40(%rbp), %rdi
	movl	-48(%rbp), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_atahpa_print
	movq	-40(%rbp), %rdi
	movl	-44(%rbp), %esi
	xorl	%edx, %edx
	callq	_ataama_print
	movq	-40(%rbp), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_cam_freeccb
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't allocate CCB"

	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ## @CAM_ARG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"%s%d: Raw identify data:\n"

	.comm	_ATA_SUPPORT_PROTECTED,4,2      ## @ATA_SUPPORT_PROTECTED
	.comm	_ATA_SUPPORT_AMAX_ADDR,4,2      ## @ATA_SUPPORT_AMAX_ADDR
L_.str.2:                               ## @.str.2
	.asciz	"%s%d: "

	.no_dead_strip	_ataidentify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ataidentify
_ataidentify:                           ; @ataidentify
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [sp]
	bl	_cam_getccb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_ata_do_identify
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_cam_freeccb
	mov	w0, #1
	b	LBB0_11
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w0, #1
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x8, _arglist@GOTPAGE
Lloh3:
	ldr	x8, [x8, _arglist@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #8]
	mov	w1, #8
	bl	_dump_data
LBB0_6:
	ldr	x4, [sp, #8]
	ldr	w8, [x4, #4]
Lloh10:
	adrp	x9, _ATA_SUPPORT_PROTECTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATA_SUPPORT_PROTECTED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	add	x5, sp, #4
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_ata_read_native_max
	ldr	x4, [sp, #8]
LBB0_8:
	ldr	w8, [x4]
Lloh13:
	adrp	x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x4, sp
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_ata_get_native_max
LBB0_10:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #8]
	bl	_ata_print_ident
	mov	x0, x20
	bl	_camxferrate
	ldr	x0, [sp, #8]
	bl	_atacapprint
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #4]
	mov	w2, #0
	bl	_atahpa_print
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	mov	w2, #0
	bl	_ataama_print
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x19
	bl	_cam_freeccb
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't allocate CCB"

	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ; @CAM_ARG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"%s%d: Raw identify data:\n"

	.comm	_ATA_SUPPORT_PROTECTED,4,2      ; @ATA_SUPPORT_PROTECTED
	.comm	_ATA_SUPPORT_AMAX_ADDR,4,2      ; @ATA_SUPPORT_AMAX_ADDR
l_.str.2:                               ; @.str.2
	.asciz	"%s%d: "

	.no_dead_strip	_ataidentify
.subsections_via_symbols
