	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkt_generic_packet
_pkt_generic_packet:                    ## @pkt_generic_packet
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_bdev_get_queue
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	_CGC_DATA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_READ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	___GFP_WAIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_blk_get_request
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	24(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movl	28(%r15), %edx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_blk_rq_map_kern
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_11
LBB0_7:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_COMMAND_SIZE
	movl	%eax, 32(%r13)
	movl	28(%r13), %edi
	movq	16(%r15), %rsi
	movq	_CDROM_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	$60, (%rax), %eax
	movl	%eax, (%r13)
	movq	_REQ_TYPE_BLOCK_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	movq	_REQ_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
LBB0_9:
	movl	16(%r13), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r13, %rdi
	callq	_blk_put_request
	jmp	LBB0_12
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_WRITE,8,3             ## @CGC_DATA_WRITE
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_READ,4,2                       ## @READ
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CDROM_PACKET_SIZE,4,2          ## @CDROM_PACKET_SIZE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_REQ_TYPE_BLOCK_PC,4,2          ## @REQ_TYPE_BLOCK_PC
	.comm	_REQ_QUIET,4,2                  ## @REQ_QUIET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pkt_generic_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkt_generic_packet
_pkt_generic_packet:                    ; @pkt_generic_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_bdev_get_queue
	mov	x22, x0
Lloh0:
	adrp	x8, _CGC_DATA_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGC_DATA_WRITE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WRITE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _READ@GOTPAGE
Lloh6:
	ldr	x11, [x11, _READ@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
Lloh7:
	adrp	x23, ___GFP_WAIT@GOTPAGE
Lloh8:
	ldr	x23, [x23, ___GFP_WAIT@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_blk_get_request
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w3, [x21, #24]
	cbz	w3, LBB0_3
; %bb.2:
	ldr	w2, [x21, #28]
	ldr	w4, [x23]
	mov	x0, x22
	mov	x1, x19
	bl	_blk_rq_map_kern
	cbnz	x0, LBB0_8
LBB0_3:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_COMMAND_SIZE
	str	w0, [x19, #32]
	ldr	w0, [x19, #28]
	ldr	x1, [x21, #16]
Lloh9:
	adrp	x8, _CDROM_PACKET_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CDROM_PACKET_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_memcpy
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #60
	mul	w8, w8, w9
	str	w8, [x19]
Lloh15:
	adrp	x8, _REQ_TYPE_BLOCK_PC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REQ_TYPE_BLOCK_PC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _REQ_QUIET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REQ_QUIET@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_5:
	ldr	w0, [x19, #16]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #0
	bl	_blk_execute_rq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_7:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_blk_put_request
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_WRITE,8,3             ; @CGC_DATA_WRITE
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_READ,4,2                       ; @READ
	.comm	___GFP_WAIT,4,2                 ; @__GFP_WAIT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CDROM_PACKET_SIZE,4,2          ; @CDROM_PACKET_SIZE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_REQ_TYPE_BLOCK_PC,4,2          ; @REQ_TYPE_BLOCK_PC
	.comm	_REQ_QUIET,4,2                  ; @REQ_QUIET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pkt_generic_packet
.subsections_via_symbols
