	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_get_config_data
_hso_get_config_data:                   ## @hso_get_config_data
	.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	%rdi, %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$17, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movslq	(%rax), %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_CTRL_SET_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$134, %edx
	movl	$192, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$17
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$17, %eax
	jne	LBB0_4
## %bb.5:
	cmpl	$17, %r12d
	jl	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_7:
	movl	(%r14,%r12,4), %eax
	decl	%eax
	cmpl	$10, %eax
	ja	LBB0_10
## %bb.8:
	cltq
	leaq	l_switch.table.hso_get_config_data(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_HSO_INTF_BULK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movl	64(%r14), %ebx
	andl	$1, %ebx
	negl	%ebx
	movq	_HSO_INFO_CRC_BUG@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	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	_USB_CTRL_SET_TIMEOUT,4,2       ## @USB_CTRL_SET_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HSO_PORT_DIAG,4,2              ## @HSO_PORT_DIAG
	.comm	_HSO_PORT_GPS,4,2               ## @HSO_PORT_GPS
	.comm	_HSO_PORT_GPS_CONTROL,4,2       ## @HSO_PORT_GPS_CONTROL
	.comm	_HSO_PORT_APP,4,2               ## @HSO_PORT_APP
	.comm	_HSO_PORT_APP2,4,2              ## @HSO_PORT_APP2
	.comm	_HSO_PORT_CONTROL,4,2           ## @HSO_PORT_CONTROL
	.comm	_HSO_PORT_NETWORK,4,2           ## @HSO_PORT_NETWORK
	.comm	_HSO_PORT_MODEM,4,2             ## @HSO_PORT_MODEM
	.comm	_HSO_PORT_MSD,4,2               ## @HSO_PORT_MSD
	.comm	_HSO_PORT_PCSC,4,2              ## @HSO_PORT_PCSC
	.comm	_HSO_PORT_VOICE,4,2             ## @HSO_PORT_VOICE
	.comm	_HSO_INTF_BULK,4,2              ## @HSO_INTF_BULK
	.comm	_HSO_INFO_CRC_BUG,4,2           ## @HSO_INFO_CRC_BUG
	.no_dead_strip	_hso_get_config_data
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.hso_get_config_data
l_switch.table.hso_get_config_data:
	.quad	_HSO_PORT_DIAG
	.quad	_HSO_PORT_GPS
	.quad	_HSO_PORT_GPS_CONTROL
	.quad	_HSO_PORT_APP
	.quad	_HSO_PORT_APP2
	.quad	_HSO_PORT_CONTROL
	.quad	_HSO_PORT_NETWORK
	.quad	_HSO_PORT_MODEM
	.quad	_HSO_PORT_MSD
	.quad	_HSO_PORT_PCSC
	.quad	_HSO_PORT_VOICE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_get_config_data
_hso_get_config_data:                   ; @hso_get_config_data
	.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, x0
	bl	_interface_to_usbdev
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #17
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21]
	ldrsw	x21, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _USB_CTRL_SET_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_CTRL_SET_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #134
	mov	w3, #192
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	mov	w7, #17
	bl	_usb_control_msg
	cmp	w0, #17
	b.ne	LBB0_5
; %bb.2:
	cmp	w21, #17
	b.lt	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_kfree
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_kfree
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
LBB0_8:
	ldr	w8, [x19, x21, lsl #2]
	sub	w8, w8, #1
	cmp	w8, #10
	b.hi	LBB0_11
; %bb.9:
Lloh12:
	adrp	x9, l_switch.table.hso_get_config_data@PAGE
Lloh13:
	add	x9, x9, l_switch.table.hso_get_config_data@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.10:
Lloh14:
	adrp	x9, _HSO_INTF_BULK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HSO_INTF_BULK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_11:
	mov	w8, #0
LBB0_12:
	ldr	w9, [x19, #64]
	sbfx	w9, w9, #0, #1
Lloh17:
	adrp	x10, _HSO_INFO_CRC_BUG@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HSO_INFO_CRC_BUG@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w20, w9, w8
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ; @USB_CTRL_SET_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HSO_PORT_DIAG,4,2              ; @HSO_PORT_DIAG
	.comm	_HSO_PORT_GPS,4,2               ; @HSO_PORT_GPS
	.comm	_HSO_PORT_GPS_CONTROL,4,2       ; @HSO_PORT_GPS_CONTROL
	.comm	_HSO_PORT_APP,4,2               ; @HSO_PORT_APP
	.comm	_HSO_PORT_APP2,4,2              ; @HSO_PORT_APP2
	.comm	_HSO_PORT_CONTROL,4,2           ; @HSO_PORT_CONTROL
	.comm	_HSO_PORT_NETWORK,4,2           ; @HSO_PORT_NETWORK
	.comm	_HSO_PORT_MODEM,4,2             ; @HSO_PORT_MODEM
	.comm	_HSO_PORT_MSD,4,2               ; @HSO_PORT_MSD
	.comm	_HSO_PORT_PCSC,4,2              ; @HSO_PORT_PCSC
	.comm	_HSO_PORT_VOICE,4,2             ; @HSO_PORT_VOICE
	.comm	_HSO_INTF_BULK,4,2              ; @HSO_INTF_BULK
	.comm	_HSO_INFO_CRC_BUG,4,2           ; @HSO_INFO_CRC_BUG
	.no_dead_strip	_hso_get_config_data
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.hso_get_config_data
l_switch.table.hso_get_config_data:
	.quad	_HSO_PORT_DIAG
	.quad	_HSO_PORT_GPS
	.quad	_HSO_PORT_GPS_CONTROL
	.quad	_HSO_PORT_APP
	.quad	_HSO_PORT_APP2
	.quad	_HSO_PORT_CONTROL
	.quad	_HSO_PORT_NETWORK
	.quad	_HSO_PORT_MODEM
	.quad	_HSO_PORT_MSD
	.quad	_HSO_PORT_PCSC
	.quad	_HSO_PORT_VOICE

.subsections_via_symbols
