	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c4iw_query_gid
_c4iw_query_gid:                        ## @c4iw_query_gid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ecx
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r14, %r8
	callq	_pr_debug
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_c4iw_dev
	movq	%rax, %rbx
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r14), %rdi
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
	movq	-8(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	callq	_memcpy
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibdev %p, port %d, index %d, gid %p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_c4iw_query_gid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c4iw_query_gid
_c4iw_query_gid:                        ; @c4iw_query_gid
	.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	x20, x3
	mov	x3, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x4, x20
	bl	_pr_debug
	cbz	w19, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_to_c4iw_dev
	mov	x21, x0
	ldr	x0, [x20]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x20]
	ldr	x8, [x21]
	sub	w9, w19, #1
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w1, [x8]
	mov	w2, #6
	bl	_memcpy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibdev %p, port %d, index %d, gid %p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_c4iw_query_gid
.subsections_via_symbols
