	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atapm_proc_resp
_atapm_proc_resp:                       ## @atapm_proc_resp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -28(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-36(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-32(%rbp), %r9
	callq	_get_ata_status
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.1:
	movq	_arglist@GOTPCREL(%rip), %rax
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cam_error_print
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_4:
	movq	_ATA_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -24(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cam_error_print
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_6:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-20(%rbp), %esi
	cmpl	$64, %esi
	jle	LBB0_7
## %bb.11:
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.25:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	leaq	L_str.15(%rip), %rdi
	jmp	LBB0_16
LBB0_7:
	testl	%esi, %esi
	je	LBB0_15
## %bb.8:
	cmpl	$1, %esi
	je	LBB0_17
## %bb.9:
	cmpl	$64, %esi
	jne	LBB0_23
## %bb.10:
	leaq	L_str.17(%rip), %rdi
	jmp	LBB0_16
LBB0_12:
	cmpl	$65, %esi
	je	LBB0_18
## %bb.13:
	cmpl	$255, %esi
	jne	LBB0_23
## %bb.14:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	leaq	L_str.19(%rip), %rdi
	jmp	LBB0_16
LBB0_17:
	leaq	L_str.18(%rip), %rdi
	jmp	LBB0_16
LBB0_23:
	leaq	L_.str.11(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_24
LBB0_20:
	leaq	L_str.14(%rip), %rdi
	jmp	LBB0_16
LBB0_21:
	leaq	L_str.13(%rip), %rdi
	jmp	LBB0_16
LBB0_22:
	leaq	L_str.12(%rip), %rdi
	jmp	LBB0_16
LBB0_18:
	leaq	L_str.16(%rip), %rdi
LBB0_16:
	callq	_puts
	xorl	%ebx, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ## @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ## @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ## @CAM_EPF_ALL
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get ATA command status"

	.comm	_ATA_STATUS_ERROR,4,2           ## @ATA_STATUS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s%d: "

L_.str.11:                              ## @.str.11
	.asciz	"Unknown mode 0x%02x\n"

L_str:                                  ## @str
	.asciz	"Active or Idle mode"

L_str.12:                               ## @str.12
	.asciz	"Idle_c mode"

L_str.13:                               ## @str.13
	.asciz	"Idle_b mode"

L_str.14:                               ## @str.14
	.asciz	"Idle_a mode"

L_str.15:                               ## @str.15
	.asciz	"Idle mode"

L_str.16:                               ## @str.16
	.asciz	"NV Cache Power Mode and the spindle is spun up or spinning up"

L_str.17:                               ## @str.17
	.asciz	"NV Cache Power Mode and the spindle is spun down or spinning down"

L_str.18:                               ## @str.18
	.asciz	"Standby_y mode"

L_str.19:                               ## @str.19
	.asciz	"Standby mode"

	.no_dead_strip	_atapm_proc_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atapm_proc_resp
_atapm_proc_resp:                       ; @atapm_proc_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stur	xzr, [x29, #-24]
	stur	wzr, [x29, #-28]
	stp	wzr, wzr, [sp, #28]
	sub	x2, x29, #20
	add	x3, sp, #32
	add	x4, sp, #28
	sub	x5, x29, #24
	sub	x6, x29, #28
	bl	_get_ata_status
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _arglist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arglist@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_cam_error_print
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w0, #1
	b	LBB0_26
LBB0_4:
	ldur	w8, [x29, #-28]
Lloh17:
	adrp	x9, _ATA_STATUS_ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_STATUS_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_cam_error_print
	mov	w0, #1
	b	LBB0_26
LBB0_6:
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #32]
	cmp	w8, #64
	b.le	LBB0_10
; %bb.7:
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_14
; %bb.8:
Lloh31:
	adrp	x8, lJTI0_0@PAGE
Lloh32:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh33:
	adrp	x0, l_str.15@PAGE
Lloh34:
	add	x0, x0, l_str.15@PAGEOFF
	b	LBB0_24
LBB0_10:
	cbz	w8, LBB0_17
; %bb.11:
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.12:
	cmp	w8, #64
	b.ne	LBB0_19
; %bb.13:
Lloh35:
	adrp	x0, l_str.17@PAGE
Lloh36:
	add	x0, x0, l_str.17@PAGEOFF
	b	LBB0_24
LBB0_14:
	cmp	w8, #65
	b.eq	LBB0_23
; %bb.15:
	cmp	w8, #255
	b.ne	LBB0_19
; %bb.16:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_24
LBB0_17:
Lloh39:
	adrp	x0, l_str.19@PAGE
Lloh40:
	add	x0, x0, l_str.19@PAGEOFF
	b	LBB0_24
LBB0_18:
Lloh41:
	adrp	x0, l_str.18@PAGE
Lloh42:
	add	x0, x0, l_str.18@PAGEOFF
	b	LBB0_24
LBB0_19:
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.11@PAGE
Lloh44:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	b	LBB0_25
LBB0_20:
Lloh45:
	adrp	x0, l_str.14@PAGE
Lloh46:
	add	x0, x0, l_str.14@PAGEOFF
	b	LBB0_24
LBB0_21:
Lloh47:
	adrp	x0, l_str.13@PAGE
Lloh48:
	add	x0, x0, l_str.13@PAGEOFF
	b	LBB0_24
LBB0_22:
Lloh49:
	adrp	x0, l_str.12@PAGE
Lloh50:
	add	x0, x0, l_str.12@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh51:
	adrp	x0, l_str.16@PAGE
Lloh52:
	add	x0, x0, l_str.16@PAGEOFF
LBB0_24:
	bl	_puts
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
	.byte	(LBB0_21-LBB0_9)>>2
	.byte	(LBB0_22-LBB0_9)>>2
                                        ; -- End function
	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ; @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ; @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ; @CAM_EPF_ALL
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get ATA command status"

	.comm	_ATA_STATUS_ERROR,4,2           ; @ATA_STATUS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s%d: "

l_.str.11:                              ; @.str.11
	.asciz	"Unknown mode 0x%02x\n"

l_str:                                  ; @str
	.asciz	"Active or Idle mode"

l_str.12:                               ; @str.12
	.asciz	"Idle_c mode"

l_str.13:                               ; @str.13
	.asciz	"Idle_b mode"

l_str.14:                               ; @str.14
	.asciz	"Idle_a mode"

l_str.15:                               ; @str.15
	.asciz	"Idle mode"

l_str.16:                               ; @str.16
	.asciz	"NV Cache Power Mode and the spindle is spun up or spinning up"

l_str.17:                               ; @str.17
	.asciz	"NV Cache Power Mode and the spindle is spun down or spinning down"

l_str.18:                               ; @str.18
	.asciz	"Standby_y mode"

l_str.19:                               ; @str.19
	.asciz	"Standby mode"

	.no_dead_strip	_atapm_proc_resp
.subsections_via_symbols
