	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_init_queue
_ide_init_queue:                        ## @ide_init_queue
	.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, %r13
	movq	8(%rdi), %r12
	movq	_PRD_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_do_ide_request@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_hwif_to_node
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_blk_init_queue_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, (%rax)
	movq	%rax, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_blk_queue_segment_boundary
	movl	(%r12), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$256, %esi                      ## imm = 0x100
	cmovll	%eax, %esi
	movq	%rbx, %rdi
	callq	_blk_queue_max_hw_sectors
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_blk_queue_max_segments
	movq	%rbx, (%r13)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_ide_toggle_bounce
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRD_ENTRIES,4,2                ## @PRD_ENTRIES
	.comm	_do_ide_request,4,2             ## @do_ide_request
	.comm	_PCI_DMA_BUS_IS_PHYS,4,2        ## @PCI_DMA_BUS_IS_PHYS
	.no_dead_strip	_ide_init_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_init_queue
_ide_init_queue:                        ; @ide_init_queue
	.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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _PRD_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRD_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _do_ide_request@GOTPAGE
Lloh4:
	ldr	x8, [x8, _do_ide_request@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_hwif_to_node
	mov	x2, x0
	mov	x0, x22
	mov	x1, #0
	bl	_blk_init_queue_node
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	str	x19, [x0]
	mov	w1, #65535
	bl	_blk_queue_segment_boundary
	ldr	w8, [x21]
	mov	w9, #256
	cmp	w8, #256
	csel	w1, w8, w9, lt
	mov	x0, x22
	bl	_blk_queue_max_hw_sectors
	mov	x0, x22
	mov	x1, x20
	bl	_blk_queue_max_segments
	str	x22, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_ide_toggle_bounce
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PRD_ENTRIES,4,2                ; @PRD_ENTRIES
	.comm	_do_ide_request,4,2             ; @do_ide_request
	.comm	_PCI_DMA_BUS_IS_PHYS,4,2        ; @PCI_DMA_BUS_IS_PHYS
	.no_dead_strip	_ide_init_queue
.subsections_via_symbols
