	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function login_new_request
_login_new_request:                     ## @login_new_request
	.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	%esi, %r13d
	movq	%rdi, %r15
	callq	_pdu_new
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	_ISCSI_BHS_OPCODE_LOGIN_REQUEST@GOTPCREL(%rip), %rax
	movq	_ISCSI_BHS_OPCODE_IMMEDIATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_BHSLR_FLAGS_TRANSIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	cmpl	$128, %r13d
	je	LBB0_1
## %bb.2:
	cmpl	$129, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_5
LBB0_1:
	movl	$129, %r12d
	jmp	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	callq	_assert
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	callq	_log_errx
                                        ## implicit-def: $r12d
LBB0_5:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_login_set_csg
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_login_set_nsg
	movl	28(%rbx), %edi
	leaq	12(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r15), %edi
	callq	_htons
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	(%r15), %rdi
	incq	%rdi
	callq	_htonl
	movl	%eax, 4(%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISCSI_BHS_OPCODE_LOGIN_REQUEST,4,2 ## @ISCSI_BHS_OPCODE_LOGIN_REQUEST
	.comm	_ISCSI_BHS_OPCODE_IMMEDIATE,4,2 ## @ISCSI_BHS_OPCODE_IMMEDIATE
	.comm	_BHSLR_FLAGS_TRANSIT,4,2        ## @BHSLR_FLAGS_TRANSIT
	.comm	_BHSLR_STAGE_FULL_FEATURE_PHASE,4,2 ## @BHSLR_STAGE_FULL_FEATURE_PHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"invalid csg %d"

	.no_dead_strip	_login_new_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function login_new_request
_login_new_request:                     ; @login_new_request
	.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
	bl	_pdu_new
	mov	x19, x0
Lloh0:
	adrp	x8, _ISCSI_BHS_OPCODE_LOGIN_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISCSI_BHS_OPCODE_LOGIN_REQUEST@GOTPAGEOFF]
	ldr	x23, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ISCSI_BHS_OPCODE_IMMEDIATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISCSI_BHS_OPCODE_IMMEDIATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23]
Lloh6:
	adrp	x8, _BHSLR_FLAGS_TRANSIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BHSLR_FLAGS_TRANSIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_3:
	mov	w22, #129
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	bl	_assert
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_log_errx
                                        ; implicit-def: $w22
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_login_set_csg
	mov	x0, x19
	mov	x1, x22
	bl	_login_set_nsg
	ldr	w0, [x23, #28]
	add	x1, x20, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #8]
	bl	_htons
	str	w0, [x23, #24]
	stp	xzr, xzr, [x23, #8]
	ldr	x8, [x20]
	add	x0, x8, #1
	bl	_htonl
	str	w0, [x23, #4]
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISCSI_BHS_OPCODE_LOGIN_REQUEST,4,2 ; @ISCSI_BHS_OPCODE_LOGIN_REQUEST
	.comm	_ISCSI_BHS_OPCODE_IMMEDIATE,4,2 ; @ISCSI_BHS_OPCODE_IMMEDIATE
	.comm	_BHSLR_FLAGS_TRANSIT,4,2        ; @BHSLR_FLAGS_TRANSIT
	.comm	_BHSLR_STAGE_FULL_FEATURE_PHASE,4,2 ; @BHSLR_STAGE_FULL_FEATURE_PHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"invalid csg %d"

	.no_dead_strip	_login_new_request
.subsections_via_symbols
