	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_hsm_ok_in_wq
_ata_hsm_ok_in_wq:                      ## @ata_hsm_ok_in_wq
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rsi), %eax
	movq	_ATA_TFLAG_POLLING@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	(%rdi), %rcx
	movq	_HSM_ST_FIRST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.2:
	movq	%rsi, %rbx
	movq	16(%rsi), %rdi
	movq	_ATA_PROT_PIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_4
## %bb.3:
	movq	_ATA_TFLAG_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
LBB0_4:
	callq	_ata_is_atapi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movq	_ATA_DFLAG_CDB_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_POLLING,4,2          ## @ATA_TFLAG_POLLING
	.comm	_HSM_ST_FIRST,8,3               ## @HSM_ST_FIRST
	.comm	_ATA_PROT_PIO,8,3               ## @ATA_PROT_PIO
	.comm	_ATA_TFLAG_WRITE,4,2            ## @ATA_TFLAG_WRITE
	.comm	_ATA_DFLAG_CDB_INTR,4,2         ## @ATA_DFLAG_CDB_INTR
	.no_dead_strip	_ata_hsm_ok_in_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_hsm_ok_in_wq
_ata_hsm_ok_in_wq:                      ; @ata_hsm_ok_in_wq
	.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
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x9, _ATA_TFLAG_POLLING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_TFLAG_POLLING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _HSM_ST_FIRST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HSM_ST_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.3:
	mov	x19, x1
	ldr	x0, [x1, #16]
Lloh6:
	adrp	x9, _ATA_PROT_PIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_PROT_PIO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _ATA_TFLAG_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_TFLAG_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
LBB0_5:
	bl	_ata_is_atapi
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ATA_DFLAG_CDB_INTR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_DFLAG_CDB_INTR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_POLLING,4,2          ; @ATA_TFLAG_POLLING
	.comm	_HSM_ST_FIRST,8,3               ; @HSM_ST_FIRST
	.comm	_ATA_PROT_PIO,8,3               ; @ATA_PROT_PIO
	.comm	_ATA_TFLAG_WRITE,4,2            ; @ATA_TFLAG_WRITE
	.comm	_ATA_DFLAG_CDB_INTR,4,2         ; @ATA_DFLAG_CDB_INTR
	.no_dead_strip	_ata_hsm_ok_in_wq
.subsections_via_symbols
