	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_usb_set_identify
_gs_usb_set_identify:                   ## @gs_usb_set_identify
	.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
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.5:
	movq	_GS_CAN_IDENTIFY_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_4:
	movq	_GS_CAN_IDENTIFY_ON@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	4(%r14), %edi
	callq	_interface_to_usbdev
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_GS_USB_BREQ_IDENTIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	(%r14), %r8d
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%r9d, %r9d
	pushq	$100
	pushq	$4
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GS_CAN_IDENTIFY_ON,4,2         ## @GS_CAN_IDENTIFY_ON
	.comm	_GS_CAN_IDENTIFY_OFF,4,2        ## @GS_CAN_IDENTIFY_OFF
	.comm	_GS_USB_BREQ_IDENTIFY,4,2       ## @GS_USB_BREQ_IDENTIFY
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.no_dead_strip	_gs_usb_set_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_usb_set_identify
_gs_usb_set_identify:                   ; @gs_usb_set_identify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _GS_CAN_IDENTIFY_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GS_CAN_IDENTIFY_OFF@GOTPAGEOFF]
Lloh5:
	adrp	x9, _GS_CAN_IDENTIFY_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GS_CAN_IDENTIFY_ON@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w0, [x20, #4]
	bl	_interface_to_usbdev
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_interface_to_usbdev
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh7:
	adrp	x8, _GS_USB_BREQ_IDENTIFY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GS_USB_BREQ_IDENTIFY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w4, [x20]
	mov	w8, #100
	str	w8, [sp]
	mov	x0, x21
	mov	w5, #0
	mov	x6, x19
	mov	w7, #4
	bl	_usb_control_msg
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GS_CAN_IDENTIFY_ON,4,2         ; @GS_CAN_IDENTIFY_ON
	.comm	_GS_CAN_IDENTIFY_OFF,4,2        ; @GS_CAN_IDENTIFY_OFF
	.comm	_GS_USB_BREQ_IDENTIFY,4,2       ; @GS_USB_BREQ_IDENTIFY
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.no_dead_strip	_gs_usb_set_identify
.subsections_via_symbols
