	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_lookup                     ## -- Begin function cmd_lookup
	.p2align	4, 0x90
_cmd_lookup:                            ## @cmd_lookup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_lookup_usage
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_nb_ctx_create
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	xorl	%eax, %eax
	callq	_smb_open_rcfile
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_smb_rc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_nb_ctx_readrcsection
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:
	movl	(%rbx), %edi
	callq	_rc_close
LBB0_6:
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_getopt
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_7
LBB0_12:
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_lookup_usage
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_nb_ctx_resolve
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movslq	%r15d, %rax
	movq	-8(%r14,%rax,8), %rbx
	movq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nbns_resolvename
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_inet_ntoa
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_inet_ntoa
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_optarg@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_lookup_usage
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	(%r12), %eax
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$119, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%r13), %esi
	callq	_nb_ctx_setns
	jmp	LBB0_11
LBB0_17:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_smb_error
LBB0_18:
	movl	$1, %edi
	callq	_exit
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_smb_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to create nbcontext"

	.comm	_smb_rc,4,2                     ## @smb_rc
L_.str.1:                               ## @.str.1
	.asciz	"default"

L_.str.2:                               ## @.str.2
	.asciz	"w:"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_optarg,4,2                     ## @optarg
	.comm	_optind,4,2                     ## @optind
L_.str.3:                               ## @.str.3
	.asciz	"unable to resolve %s"

L_.str.4:                               ## @.str.4
	.asciz	"Got response from %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"IP address of %s: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_lookup                     ; -- Begin function cmd_lookup
	.p2align	2
_cmd_lookup:                            ; @cmd_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	subs	w22, w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_lookup_usage
LBB0_2:
	add	x0, sp, #24
	bl	_nb_ctx_create
	cbnz	w0, LBB0_18
; %bb.3:
	bl	_smb_open_rcfile
	cbnz	x0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x21, _smb_rc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _smb_rc@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x1, [sp, #24]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w3, #0
	bl	_nb_ctx_readrcsection
	cbnz	x0, LBB0_17
; %bb.5:
	ldr	w0, [x21]
	bl	_rc_close
LBB0_6:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_getopt
Lloh6:
	adrp	x23, _EOF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_12
LBB0_7:
Lloh8:
	adrp	x8, _optind@GOTPAGE
Lloh9:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.lt	LBB0_9
; %bb.8:
	bl	_lookup_usage
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_nb_ctx_resolve
	cbnz	x0, LBB0_17
; %bb.10:
	ldr	x19, [x19, w22, sxtw #3]
	ldr	x1, [sp, #24]
	add	x2, sp, #16
	mov	x0, x19
	bl	_nbns_resolvename
	cbnz	w0, LBB0_19
; %bb.11:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_inet_ntoa
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_inet_ntoa
	str	x0, [sp]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh15:
	adrp	x24, _optarg@GOTPAGE
Lloh16:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.2@PAGE
Lloh18:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_lookup_usage
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w0, #119
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [sp, #24]
	ldr	w1, [x24]
	bl	_nb_ctx_setns
	b	LBB0_14
LBB0_17:
	mov	w0, #1
	bl	_exit
LBB0_18:
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_19:
	mov	x1, x0
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_smb_error
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to create nbcontext"

	.comm	_smb_rc,4,2                     ; @smb_rc
l_.str.1:                               ; @.str.1
	.asciz	"default"

l_.str.2:                               ; @.str.2
	.asciz	"w:"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_optarg,4,2                     ; @optarg
	.comm	_optind,4,2                     ; @optind
l_.str.3:                               ; @.str.3
	.asciz	"unable to resolve %s"

l_.str.4:                               ; @.str.4
	.asciz	"Got response from %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"IP address of %s: %s\n"

.subsections_via_symbols
