	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsg_create_job
_bsg_create_job:                        ## @bsg_create_job
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rdi
	movq	32(%rsi), %r15
	callq	_BUG_ON
	leal	56(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	%rax, 24(%rbx)
	movq	%rbx, 48(%rax)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	leaq	56(%r12), %rax
	movq	%rax, 40(%r12)
LBB0_3:
	movl	16(%rbx), %eax
	movl	%eax, 36(%r12)
	movl	12(%rbx), %eax
	movl	%eax, 32(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 28(%r12)
	movq	_SCSI_SENSE_BUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bsg_map_buffer
	testl	%eax, %eax
	jne	LBB0_10
LBB0_5:
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	addq	$16, %rdi
	movq	%r15, %rsi
	callq	_bsg_map_buffer
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r12), %rdi
	callq	_kfree
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_8:
	movq	%r14, 8(%r12)
	movq	%r14, %rdi
	callq	_get_device
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ## @SCSI_SENSE_BUFFERSIZE
	.no_dead_strip	_bsg_create_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsg_create_job
_bsg_create_job:                        ; @bsg_create_job
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x0, x21, [x1, #24]
	bl	_BUG_ON
	add	w0, w23, #56
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x0, [x22, #24]
	str	x22, [x0, #48]
	cbz	w23, LBB0_3
; %bb.2:
	add	x8, x20, #56
	str	x8, [x20, #40]
LBB0_3:
	ldr	w8, [x22, #16]
	str	w8, [x20, #36]
	ldr	d0, [x22, #8]
	stur	d0, [x20, #28]
Lloh3:
	adrp	x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_bsg_map_buffer
	cbnz	w0, LBB0_9
LBB0_5:
	cbz	x21, LBB0_11
; %bb.6:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.7:
	add	x0, x20, #16
	mov	x1, x21
	bl	_bsg_map_buffer
	cbz	w0, LBB0_11
; %bb.8:
	ldr	x0, [x20]
	bl	_kfree
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_get_device
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ; @SCSI_SENSE_BUFFERSIZE
	.no_dead_strip	_bsg_create_job
.subsections_via_symbols
